FOrmatting

This commit is contained in:
cubernetes 2023-08-11 09:38:09 +02:00
parent 31d9adcb62
commit 1137636973
2 changed files with 8 additions and 2 deletions

View File

@ -23,7 +23,13 @@ def show_highscore() -> None:
'-E',
'watch',
'-tcn.6',
r"""bash -c 'for _ in $(seq $(($(tput lines) / 3 - 1))); do printf "\n\033[31m"; done; printf "%$(($(tput cols) / 2 + 5))s\n" "Highscore:"; figlet -w $(tput cols) -c $(cat "/home/tosuman/42/hackthelobby/.score"); printf "\n\033[3$((RANDOM % 7 + 1))m%$(($(tput cols) / 2 + 4 + RANDOM % 8))s\n" "Show your hands!";'""",
r"""bash -c
'for _ in $(seq $(($(tput lines) / 3 - 1)));
do printf "\n\033[31m";
done;
printf "%$(($(tput cols) / 2 + 5))s\n" "Highscore:";
figlet -w $(tput cols) -c $(cat "/home/tosuman/42/hackthelobby/.score");
printf "\n\033[3$((RANDOM % 7 + 1))m%$(($(tput cols) / 2 + 4 + RANDOM % 8))s\n" "Show your hands!"'""",
])
def main() -> NoReturn:

View File

@ -5,7 +5,7 @@
TERM_FONT='SauceCodePro Nerd Font Mono'
TERM_FONT_SIZE='10'
OUT_TERM='screen'
OUT_TERM='xterm-mono'
TERM_FULLSCREEN='-fullscreen'
xterm \
-bg black \