Inserting Custom Ascii Art #285
Unanswered
lycheeje11y
asked this question in
Q&A
Replies: 1 comment
-
|
You can program a Lua function to parse all the lines of ASCII art from a txt file into the alpah-lua. I just chatGPT and found this code and it works too. local function read_ascii_art(file_path)
local lines = {}
for line in io.lines(file_path) do
table.insert(lines, line)
end
return lines
end
local file_path = "./ASCII.txt"
local ascii_art_lines = read_ascii_art(file_path)
dashboard.section.header.val = ascii_art_lines |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use custom ascii art for the dashboard.section.header value. Is there a way to insert ascii art that takes less work than copying it line by line into an array? Like referencing a txt file?
Beta Was this translation helpful? Give feedback.
All reactions