bug fix: screen clear command key error

main
simp 2025-09-30 08:12:24 +00:00
parent 3e70eae78c
commit 854ce7bb1f
1 changed files with 7 additions and 3 deletions

View File

@ -478,10 +478,14 @@ def watch_hosts_notbob():
clear_cmds:dict = {
'windows': 'cls',
'darwin': 'clear',
'linux': 'clear',
'bsd': 'clear',
}
os.system(clear_cmds[usr_system])
print_title('notbob watchlist', 'Edit watchlist in .settings')
time.sleep(1.5)
if usr_system in clear_cmds:
os.system(clear_cmds[usr_system])
print_title('notbob watchlist', 'Edit watchlist in .settings')
time.sleep(1)
clear_cmds.pop('linux'); clear_cmds.pop('bsd')
cmd = f"http://notbob.i2p/cgi-bin/line24.cgi?c=1&lw=20&h={'&h='.join(Settings.config['watch_list'])}"
while 1:
if usr_system in clear_cmds: