diff --git a/userland/artwork/sysinfo.ans b/userland/artwork/sysinfo.ans new file mode 100644 index 0000000..3aeae34 --- /dev/null +++ b/userland/artwork/sysinfo.ans @@ -0,0 +1,15 @@ + . + .' `. +. . . . . . . . . . . . _ _____  .' .'. `. _____ _ . . . . . . . . . . . . +: ... ____ _////_ ___ ' .'.:.`. `.\__ _\\\\_ _... : +| : / _/___________ - ¯.// _/____ ___ _______ \.¯ - ________________ : | +'____\__¯  /\/_________\__¯ /<___>\/_________\ _/\\____ + \ ¯ Y \/  V /\ ¯ Y : \  .  / : V/\ ¯ Y_____\/_ / +'/. ______\_____  \/______\:::/_____\\/_/ ..¯\___ V  . \ +/_____/ .....¯.... \\____/ . . .¯:i:¯. . .¯\______\____/ .::::... \______/ +¯ . ...%!!:!:!::::: >____/ . . | : | ili | : |  . . .¯.....::::!:!:!!.... . . +| : |#%%!!!:!:!:!::.¯... .'.. ' | : | lIl | : | ` ..`. ...:.::!:!:!:!!!%%#| : | +| | |##%!!!!:!!:::.:':'.. .. %| | | $$$ | | |% .. ..`:`:.:::!!:!!!!%##| | | +| ' ¯]-------------------------[¯ ' |-----| ` ¯]-------------------------[¯ ` | ++====' ....................... `====+ ... +====' ....................... `====+ + diff --git a/userland/scripts/top.py b/userland/scripts/top.py index f0792c6..bdbc46e 100644 --- a/userland/scripts/top.py +++ b/userland/scripts/top.py @@ -21,19 +21,16 @@ async def main(cx: SSHContext): return await scroll_art(cx, "userland/artwork/login.ans", "amiga") - await cx.inkey() - return - await cx.inkey( - "You have to quit vim to proceed. Press a key when you're ready.", - "dots8Bit", - ) - await cx.redirect(["/usr/bin/vi", "-R", "/app/xthulu/ssh/server.py"]) - await cx.inkey("Press any key to continue", "arc") + await cx.inkey("Press any key to continue", "dots8Bit") + + await scroll_art(cx, "userland/artwork/sysinfo.ans", "amiga") cx.echo( ":skull: [bold bright_green]x[/][green]thulu[/] ", "terminal server [italic]v1.0.0a0[/]\n", "[bright_black]https://github.com/haliphax/xthulu[/]\n\n", ) + await cx.redirect(["/bin/ash", "-c", "uname -a; echo -e '\\r'; sleep 0.1"]) + await cx.inkey("Press any key to continue", "arc") bar_text = "".join( [ diff --git a/xthulu/ssh/console/art.py b/xthulu/ssh/console/art.py index df28ee9..db15ff1 100644 --- a/xthulu/ssh/console/art.py +++ b/xthulu/ssh/console/art.py @@ -52,8 +52,6 @@ async def _worker(self): if self.context.inkey(timeout=0.1): break - else: - await self.context.inkey(timeout=1) self.exit() @@ -124,8 +122,6 @@ async def scroll_art( if await context.inkey(timeout=delay): break - else: - await context.inkey(timeout=1) async def show_art(context: SSHContext, path: str, encoding="cp437"):