Remove need for clear

This commit is contained in:
2026-02-04 22:16:45 +09:00
parent 3123b8b474
commit 7bea5b0b96
2 changed files with 5 additions and 15 deletions

View File

@@ -48,19 +48,13 @@ class MainMenu(Menu):
pass
return True
if result == "c":
os.system(
'echo -e "\033['
+ str(random.randint(40, 49))
+ ";"
+ str(random.randint(30, 37))
+ ';5m"',
)
os.system("clear")
print(f"\033[{random.randint(40, 49)};{random.randint(30, 37)};5m")
print("\033[2J")
self.show_context()
return True
if result == "cs":
os.system('echo -e "\033[0m"')
os.system("clear")
print("\033[0m")
print("\033[2J")
self.show_context()
return True
return False

View File

@@ -2,7 +2,6 @@
, python3Packages
, makeWrapper
, less
, toybox
}:
let
pyproject = builtins.fromTOML (builtins.readFile ../pyproject.toml);
@@ -32,10 +31,7 @@ python3Packages.buildPythonApplication {
postInstall = ''
wrapProgram $out/bin/dibbler \
--prefix PATH : "${lib.makeBinPath [
less
toybox # Needs `clear`
]}"
--prefix PATH : "${lib.makeBinPath [ less ]}"
'';
meta = {