更新 main.py,修改清屏命令以包含切换到当前目录

This commit is contained in:
2025-04-02 18:22:59 +08:00
Unverified
parent 12ca0faf86
commit 5fef80fa69

View File

@@ -21,7 +21,7 @@ def pseudo_zsh():
sys.stdout.write("\033]0;zsh\007") # 使用 ANSI 转义序列设置标题
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")
while True: