]> jfr.im git - yt-dlp.git/commit
[utils] `write_string`: Workaround newline issue in `conhost`
authorpukkandan <redacted>
Thu, 28 Apr 2022 13:41:04 +0000 (19:11 +0530)
committerpukkandan <redacted>
Thu, 28 Apr 2022 14:34:40 +0000 (20:04 +0530)
commit59f943cd5097e9bdbc3cb3e6b5675e43d369341a
tree4fe2b81ef6a16c21827f2939da2c687aac0dde78
parent0a5a191a2a33e3b305aaf684576b7129ba5173a0
[utils] `write_string`: Workaround newline issue in `conhost`

On windows `conhost`, when `WINDOWS_VT_MODE` is enabled, `\n` is not
actually sent if the window is exactly the length of printed line,
and the line does not end with a white-space character. So the
line-break disappears when resizing the window.

Fixes #1863
yt_dlp/YoutubeDL.py
yt_dlp/utils.py