Skip to content

Commit

Permalink
Updated banner, v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
demonnic committed Jun 28, 2022
1 parent 786fdb8 commit d443aed
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package": "REPLet",
"version": "1.1.0",
"version": "1.1.1",
"author": "Demonnic",
"title": "Lua REPL in a UserWindow or Adjustable.Container",
"icon": "computer.png",
Expand Down
57 changes: 49 additions & 8 deletions src/scripts/REPLet/code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,59 @@ REPLet.config = REPLet.config or {

local savefile = getMudletHomeDir() .. "/REPletConfig.lua"
REPLet.prompt = "\nREPLet:> "
REPLet.intro = [[
-- generated using toilet and the 'ogre' figlet font
REPLet.bannerText = [[
__ __ ___ __ _
/__\ /__/ _ \/ / ___| |_
/ \///_\/ /_)/ / / _ | __|
/ _ //_/ ___/ /__| __| |_
\/ \_\__\/ \____/\___|\__|
_ _ ___
__ _/ | / | / _ \
\ \ / | | | || | | |
\ V /| |_| || |_| |
\_/ |_(_|_(_\___/
_ _ _
__ _/ | / | / |
\ \ / | | | | | |
\ V /| |_| |_| |
\_/ |_(_|_(_|_|
]]

-- generated using https://manytools.org/hacker-tools/convert-images-to-ascii-art/
-- Made from the mudlet 1024x1024 logo png
REPLet.logo = [[
<:0,0,0><0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>(<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>,<215,215,175>&<215,175,135>%<255,215,175>&<255,215,175>&<255,215,175>&<255,215,175>&<215,215,175>%<255,215,175>&<215,215,175>&<255,215,175>&<255,215,175>&<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <255,215,175>&<255,215,175>&<255,215,175>&<255,215,175>&<255,215,175>&<215,215,175>&<215,175,175>%<215,215,175>%<215,175,175>%<215,175,95>(<215,175,175>%<215,215,175>%<215,175,175>%<215,215,175>&<255,215,175>&<255,215,175>&<255,215,175>&<255,215,175>&<215,215,175>%<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <215,215,175>&<255,215,175>&<215,215,175>&<215,175,135>#<215,215,175>&<215,175,175>%<175,175,135>#<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<175,255,255>@<215,175,135>#<215,175,175>%<215,215,175>%<215,175,95>#<215,215,175>&<255,215,175>&<215,175,175>%<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>*<255,215,175>&<255,215,175>&<255,215,175>&<215,215,175>%<175,175,135>#<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,175,135>#<215,215,175>&<255,215,175>&<255,215,175>&<215,215,175>%<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <215,175,95>#<215,175,95>#<215,175,175>%<215,215,175>%<215,175,135>%<175,135,95>(<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,175,135>#<215,175,175>%<215,215,175>%<215,175,175>%<215,175,95>#<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <215,215,175>&<255,215,175>&<255,215,175>&<215,215,175>%<175,135,95>(<215,255,175>&<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,175,135>#<215,215,175>%<215,215,175>&<215,215,175>&<215,215,175>%<0,0,0> <0,0,0> <0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <215,175,95>#<215,215,175>&<215,215,175>&<215,215,175>%<175,175,135>#<175,255,135>%<175,255,135>%<175,255,135>%<175,255,135>%<175,255,135>%<175,255,135>%<175,255,175>%<175,255,175>%<215,215,175>%<215,255,215>&<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,255>@<215,255,215>&<175,215,175>%<175,215,175>%<175,215,175>%<175,215,175>%<175,215,175>%<175,215,175>%<175,215,175>%<215,175,135>#<215,215,175>%<215,215,175>&<215,215,175>%<0,0,0>#<0,0,0> <0,0,0> <0,0,0>
<0,0,0> <215,175,135>#<215,215,175>%<215,215,175>%<215,215,175>%<215,175,175>%<215,175,135>%<215,175,135>%<215,175,135>%<175,135,95>(<175,215,95>#<175,215,95>#<175,215,135>#<175,215,135>#<175,215,135>#<175,215,135>#<175,215,135>%<175,215,135>%<175,215,135>%<175,215,135>%<175,215,135>%<175,255,135>%<175,215,135>%<175,215,135>%<135,215,175>%<135,215,175>#<135,215,175>#<135,215,135>#<135,215,135>#<135,215,135>#<135,215,135>#<215,175,135>#<215,175,175>%<215,215,175>%<215,215,175>%<215,175,175>%<215,175,175>%<215,175,175>%<215,175,175>%<0,0,0>#
<0,0,0> <0,0,0> <0,0,0> <175,175,135>#<175,175,135>#<175,175,135>#<175,175,135>#<175,175,135>#<175,135,95>(<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<175,215,95>#<135,215,95>#<175,215,95>#<175,215,95>#<175,215,95>#<175,215,95>#<175,215,135>#<175,215,135>#<175,215,135>#<175,215,135>%<255,255,175>&<215,255,175>&<175,215,135>#<175,215,135>#<175,215,135>%<175,215,135>%<175,215,135>%<175,175,135>#<175,175,135>#<175,175,135>#<175,175,135>#<175,175,135>#<175,175,135>#<0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <215,175,135>%<215,215,175>%<215,215,135>%<215,215,135>%<215,175,135>%<175,175,135>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<135,215,95>#<175,215,95>#<215,215,135>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<175,215,95>#<175,215,95>#<175,215,95>#<175,215,135>#<175,215,135>#<175,175,135>#<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,175,135>%<0,0,0> <0,0,0>
<0,0,0> <0,0,0> <0,0,0> <215,175,135>%<215,175,135>%<215,215,135>%<215,215,135>%<215,175,135>%<175,175,135>#<135,215,95>(<135,215,95>(<135,215,95>(<135,215,95>(<135,215,95>(<135,215,95>(<135,215,95>(<135,215,95>(<215,215,135>%<215,255,135>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<135,215,95>#<135,215,95>#<175,215,95>#<175,215,95>#<175,215,95>#<175,175,135>#<215,175,135>%<215,215,175>%<215,215,175>%<215,215,175>%<215,175,135>%<0,0,0> <0,0,0>
<0,0,0> <0,0,0> <215,175,135>#<135,135,95>/<135,95,95>/<135,135,95>/<135,135,95>/<135,95,95>/<215,175,135>#<215,175,135>#<175,175,135>#<135,215,95>(<135,215,95>(<135,215,95>(<215,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<135,215,95>#<135,215,95>#<215,175,135>#<215,175,135>#<215,175,135>#<135,135,95>/<135,135,95>/<135,135,95>/<135,135,95>/<175,135,95>(<175,135,135>(<0,0,0>
<0,0,0> <215,175,135>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,135>%<215,215,135>%<215,215,135>%<215,175,135>#<175,175,135>#<175,215,95>#<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<135,215,95>#<175,175,135>#<215,175,135>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,215,175>%<215,175,135>#
<0,0,0> <215,175,135>#<215,175,135>#<215,175,135>#<215,175,135>#<215,175,135>#<215,175,135>#<215,175,135>#<215,175,135>#<175,175,135>#<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<255,255,175>&<215,175,135>%<215,175,135>%<215,175,135>%<215,175,135>%<215,175,135>%<215,175,135>%<215,175,135>%<215,175,135>%<175,175,135>#
<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>#<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0>&<0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0> <0,0,0>
]]

function REPLet.makeIntro()
local logotbl = REPLet.logo:split("\n")
local logo2tbl = REPLet.bannerText:split("\n")
local result = {}

for index, line in ipairs(logotbl) do
result[index] = string.format("%s %s%s", line, Geyser.Color.hdec(REPLet.config.fgColor), logo2tbl[index] or "")
end
result = table.concat(result, "\n")
return result
end

function REPLet.save()
table.save(savefile, REPLet.config)
end
Expand Down Expand Up @@ -295,7 +335,7 @@ function REPLet.run(codeString)
return
end

if codeString == "usage" then
if codeString == "usage" or codeString == "help" then
REPLet.usage()
return
end
Expand Down Expand Up @@ -325,7 +365,8 @@ end

function REPLet.clear()
REPLet.console:clear()
REPLet.console:echo(REPLet.intro)
REPLet.console:decho(REPLet.makeIntro())
REPLet.console:setFgColor(REPLet.config.fgColor)
REPLet.console:echo(REPLet.prompt)
end

Expand Down

0 comments on commit d443aed

Please sign in to comment.