[direct] pop kitty keyboard state to ttyfd #2145

This commit is contained in:
nick black 2021-09-05 20:22:18 -04:00
parent 1c72516c06
commit a299c3226d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -864,6 +864,9 @@ ncdirect_stop_minimal(void* vnc){
ret |= fbuf_finalize(&f, stdout);
}
if(nc->tcache.ttyfd >= 0){
if(nc->tcache.kittykbd){
ret |= tty_emit("\x1b[<u", nc->tcache.ttyfd);
}
const char* cnorm = get_escape(&nc->tcache, ESCAPE_CNORM);
if(cnorm && tty_emit(cnorm, nc->tcache.ttyfd)){
ret = -1;