mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 06:56:21 +00:00
Check for KEY_BACKSPACE, works on Ubuntu
This commit is contained in:
@@ -85,7 +85,7 @@ void inp_poll_char(int *ch, char *input, int *size)
|
||||
*ch = wgetch(inp_win);
|
||||
|
||||
// if delete pressed, go back and delete it
|
||||
if (*ch == 127) {
|
||||
if (*ch == 127 || *ch == KEY_BACKSPACE) {
|
||||
if (*size > 0) {
|
||||
getyx(inp_win, inp_y, inp_x);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user