reader: support ctrl+u to clear input #585

pull/592/head
nick black 4 years ago
parent 95ba340fba
commit a1eb39906f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -53,9 +53,17 @@ bool ncreader_offer_input(ncreader* n, const ncinput* ni){
ncplane_cursor_move_yx(n->ncp, y, x);
return true;
}
// FIXME handle arrows
if(nckey_supppuab_p(ni->id)){
return false;
}
if(ni->ctrl){
if(ni->id == 'U'){
ncplane_erase(n->ncp);
return true;
}
return false;
}
// FIXME need to collect full EGCs
char wbuf[WCHAR_MAX_UTF8BYTES + 1];
// FIXME breaks for wint_t < 32bits

Loading…
Cancel
Save