From 5fd8ca31bfc64c9ded8363fbdb7b1c8db29fc0e8 Mon Sep 17 00:00:00 2001 From: haliphax Date: Wed, 18 Oct 2023 12:54:22 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20logoff=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- userland/artwork/logoff.ans | 20 ++++++++++++++++++++ userland/scripts/logoff.py | 9 +++++++++ userland/scripts/top.py | 1 + 3 files changed, 30 insertions(+) create mode 100644 userland/artwork/logoff.ans create mode 100644 userland/scripts/logoff.py diff --git a/userland/artwork/logoff.ans b/userland/artwork/logoff.ans new file mode 100644 index 0000000..e59fffc --- /dev/null +++ b/userland/artwork/logoff.ans @@ -0,0 +1,20 @@ +[0;40 D  + +   __________________________ +\\XXXXXXXXXXXXXXXXXXXXXXXX/ + \XXXXXXXXXXXXXXXXXXXXXX/ +   ___/\   ___/\_____"XXXXXXX"____ ____"_____ ___/\ xz + ___) __/____,__) /__ __\ (__, _____) | (_____ ,____||__) __/_____ + \\_ \_| __ | __ |/ ___ | ___ \| || \/ _// + _/ || |/ | \| | \ | | | / | ||\_ + | |||| \| | |/ | :| || + |_ __||____|____||____|____|| _______|__ _|| +  Y |_____|_____||_____|_____|  ,|_____|____/Y |_____| +  · ŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻ ŻŻxxxxxX/ ŻŻŻŻŻ ŻŻŻŻ: ŻŻŻŻŻ +< click > \XXXX/  __ __ __ __||____ + \\X/ (__|(__)(__)(__||__)(__|(_/_ + \/   _|_| + + +( g o o d n i g h t , g o d b l e s s , n o w f u c k o f f t o b e d ) + diff --git a/userland/scripts/logoff.py b/userland/scripts/logoff.py new file mode 100644 index 0000000..f1b9043 --- /dev/null +++ b/userland/scripts/logoff.py @@ -0,0 +1,9 @@ +"""Log-off script""" + +# api +from xthulu.ssh.context import SSHContext +from xthulu.ssh.console.art import scroll_art + + +async def main(cx: SSHContext): + await scroll_art(cx, "userland/artwork/logoff.ans", "amiga") diff --git a/userland/scripts/top.py b/userland/scripts/top.py index 8928be3..fd6b436 100644 --- a/userland/scripts/top.py +++ b/userland/scripts/top.py @@ -60,3 +60,4 @@ async def main(cx: SSHContext): await cx.gosub("oneliners") await cx.gosub("lock_example") await cx.gosub("chat") + cx.goto("logoff")