ytarchive icon indicating copy to clipboard operation
ytarchive copied to clipboard

Widows: ytarchive freezes terminal UI (cannot select etc.) when running

Open fireattack opened this issue 1 year ago • 3 comments

This is technically a regression (it worked fine before), but the regression happened a very long time ago. I just never bothered to report it.

The issue:

Whenever ytarchive runs (downloading or waiting. Just print version will not), it freezes the terminal (tested: CMD, PowerShell, both native and within Windows Terminal) window UI in that you cannot select text, right click to call context menu, etc.

For Windows Terminal, thankfully it only freezes the current tab, not the entire thing.

Furthermore, for native CMD and PowerShell window, I by default enable "Quick Edit Mode" (so you can select directly). Using ytarchive to download or wait a valid URL will somehow disable this mode, even after you interruptted and exited ytarchive.

Version: ytarchive 0.4.0-68e1bf9 Node.js v20.5.1

fireattack avatar Nov 27 '24 10:11 fireattack

even after you interruptted and exited

Hmm, is that doing a hard-interrupt without letting it exit gracefully? Disabling quick-edit mode was a "feature" someone else asked I put in because clicking the terminal in that mode causes it to appear frozen, and was confusing a lot of users that accidentally did so.

Kethsar avatar Nov 27 '24 14:11 Kethsar

yes, doing a hard-interrupt (ctrl+C)

fireattack avatar Nov 27 '24 14:11 fireattack

Disabling quick-edit mode was a "feature" someone else asked I put in

That explains it. But can we disable this (no idea how though since we don't have config file AFAIK. An argument maybe?)? I understand it may confuse people who isn't familiar with CLI tools but that's just the default behavior of CMD/Terminal, and not be able to copy is annoying.

fireattack avatar Nov 27 '24 14:11 fireattack