mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 09:39:03 -04:00
note ECMA-48's NUL escape #1416
This commit is contained in:
parent
0dce453461
commit
333b4414d9
@ -67,6 +67,9 @@ notcurses_stop_minimal(void* vnc){
|
|||||||
// be sure to write the restoration sequences *prior* to running rmcup, as
|
// be sure to write the restoration sequences *prior* to running rmcup, as
|
||||||
// they apply to the screen (alternate or otherwise) we're actually using.
|
// they apply to the screen (alternate or otherwise) we're actually using.
|
||||||
if(nc->ttyfd >= 0){
|
if(nc->ttyfd >= 0){
|
||||||
|
// ECMA-48 suggests that we can interrupt an escape code with a NUL
|
||||||
|
// byte. if we leave an active escape open, it can lock up the terminal.
|
||||||
|
// we only want to do it when in the middle of a rasterization, though. FIXME
|
||||||
if(nc->tcache.pixel_shutdown){
|
if(nc->tcache.pixel_shutdown){
|
||||||
ret |= nc->tcache.pixel_shutdown(nc->ttyfd);
|
ret |= nc->tcache.pixel_shutdown(nc->ttyfd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user