更新 main.py,修改清屏命令以包含切换到当前目录
This commit is contained in:
2
main.py
2
main.py
@@ -21,7 +21,7 @@ def pseudo_zsh():
|
|||||||
sys.stdout.write("\033]0;zsh\007") # 使用 ANSI 转义序列设置标题
|
sys.stdout.write("\033]0;zsh\007") # 使用 ANSI 转义序列设置标题
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
os.system("clear") # 清屏
|
os.system("clear && cd") # 清屏
|
||||||
print(f"Last login: {datetime.now().strftime('%a %b %d %H:%M:%S %Y')} on ttys000")
|
print(f"Last login: {datetime.now().strftime('%a %b %d %H:%M:%S %Y')} on ttys000")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user