FOrmatting
This commit is contained in:
parent
31d9adcb62
commit
1137636973
|
@ -23,7 +23,13 @@ def show_highscore() -> None:
|
||||||
'-E',
|
'-E',
|
||||||
'watch',
|
'watch',
|
||||||
'-tcn.6',
|
'-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:
|
def main() -> NoReturn:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
TERM_FONT='SauceCodePro Nerd Font Mono'
|
TERM_FONT='SauceCodePro Nerd Font Mono'
|
||||||
TERM_FONT_SIZE='10'
|
TERM_FONT_SIZE='10'
|
||||||
OUT_TERM='screen'
|
OUT_TERM='xterm-mono'
|
||||||
TERM_FULLSCREEN='-fullscreen'
|
TERM_FULLSCREEN='-fullscreen'
|
||||||
xterm \
|
xterm \
|
||||||
-bg black \
|
-bg black \
|
||||||
|
|
Loading…
Reference in New Issue