Remove need for clear
This commit is contained in:
@@ -48,19 +48,13 @@ class MainMenu(Menu):
|
|||||||
pass
|
pass
|
||||||
return True
|
return True
|
||||||
if result == "c":
|
if result == "c":
|
||||||
os.system(
|
print(f"\033[{random.randint(40, 49)};{random.randint(30, 37)};5m")
|
||||||
'echo -e "\033['
|
print("\033[2J")
|
||||||
+ str(random.randint(40, 49))
|
|
||||||
+ ";"
|
|
||||||
+ str(random.randint(30, 37))
|
|
||||||
+ ';5m"',
|
|
||||||
)
|
|
||||||
os.system("clear")
|
|
||||||
self.show_context()
|
self.show_context()
|
||||||
return True
|
return True
|
||||||
if result == "cs":
|
if result == "cs":
|
||||||
os.system('echo -e "\033[0m"')
|
print("\033[0m")
|
||||||
os.system("clear")
|
print("\033[2J")
|
||||||
self.show_context()
|
self.show_context()
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
+1
-5
@@ -2,7 +2,6 @@
|
|||||||
, python3Packages
|
, python3Packages
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, less
|
, less
|
||||||
, toybox
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pyproject = builtins.fromTOML (builtins.readFile ../pyproject.toml);
|
pyproject = builtins.fromTOML (builtins.readFile ../pyproject.toml);
|
||||||
@@ -32,10 +31,7 @@ python3Packages.buildPythonApplication {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/dibbler \
|
wrapProgram $out/bin/dibbler \
|
||||||
--prefix PATH : "${lib.makeBinPath [
|
--prefix PATH : "${lib.makeBinPath [ less ]}"
|
||||||
less
|
|
||||||
toybox # Needs `clear`
|
|
||||||
]}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
Reference in New Issue
Block a user