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 を で起動する必要がありmsys2_shell.cmd -deftermます。
msys2_shell.cmd -defterm
Defterm は、本当に醜いことを除いて、すべての点で問題なく動作します。だから、プログラムからの出力をバッファリングしないように mintty 端末を修正する方法があることを願っています。