synthesize SIG{INT, TSTP, QUIT} for appropriate ctrls #2131

pull/2148/head
nick black 3 years ago
parent 1ace0139ff
commit 2268328b3d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -553,6 +553,17 @@ handle_queued_input(ncinputlayer* nc, ncinput* ni,
}
if(ret == NCKEY_CURSOR_LOCATION_REPORT){
enqueue_cursor_report(nc, ni);
}else if(ni->ctrl && !ni->shift && !ni->alt){
if(ret == 'c'){
raise(SIGINT); // FIXME only if linesigs aren't disabled
continue;
}else if(ret == 'z'){
raise(SIGTSTP); // FIXME only if linesigs aren't disabled
continue;
}else if(ret == '\\'){
raise(SIGQUIT); // FIXME only if linesigs aren't disabled
continue;
}
}
}while(ret == NCKEY_CURSOR_LOCATION_REPORT);
return ret;

Loading…
Cancel
Save