-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partial graphics writes to kitty lock it up #1416
Comments
It's trivially easy to lock up any terminal with partial escape codes. In kitty you can always recover by pressing the shortcut for reset terminal which is ctrl+shift+delete by default. |
Thanks for that pointer, @kovidgoyal . Nonetheless, I want to protect against this where I can, though you raise a good point -- it's probably best to abort any outstanding escape code, not just graphics. Is there any safe sequence I can emit that will abort any outstanding escape? If so, I've got an excellent place to slot it in unconditionally. |
I dont think there is anything that does that today. However, the best Your best bet is to read ECMA 48 and see if that standard supports using |
nice! thanks. |
There's an argument to be made, I think, for masking signals while writing out the frame. That won't work for Also, I've no idea how signals work on Windows. |
I can no longer lock up kitty in |
It is easy to effectively lock up kitty by writing a partial graphic, i.e.:
echo -e '\e_Gf=32,q=1,s=789,v=1379,i=1,a=T,m=1;AA'
this is pretty much unrecoverable from the keyboard. We ought go to some effort to ensure that we never partially write a graphic. It would be unfortunate, for instance, for a
SIGSEGV
to hit us while spooling out graphics chunks. This is probably best addressed in a signal handler. It'll be messy either way.The text was updated successfully, but these errors were encountered: