Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行 msys2.exe 并启动 Python 程序时,终端不会打印任何内容,除非打印了足够的文本以使缓冲区自动刷新,或者如果我运行sys.stdout.flush().
sys.stdout.flush()
为了解决这个问题,我必须使用msys2_shell.cmd -defterm.
msys2_shell.cmd -defterm
Defterm 在所有方面都可以正常工作,除了它真的很丑。所以,我希望有一种方法可以修复 mintty 终端,这样它就不会缓冲我的程序的输出。