diff options
author | James Booth <boothj5@gmail.com> | 2012-02-27 11:47:32 +0000 |
---|---|---|
committer | james <james@jamesbuntu.(none)> | 2012-02-27 11:49:06 +0000 |
commit | 2b0f42be32099db4ce7ab9763d1ea0e2b3fbf051 (patch) | |
tree | e0bd398773cdaee22a36f21c31e154cb83c4900c /input_win.c | |
parent | 5c9061671e05ad31091fe52f70f37fe0a3129c82 (diff) | |
download | profani-tty-2b0f42be32099db4ce7ab9763d1ea0e2b3fbf051.tar.gz |
Check for KEY_BACKSPACE, works on Ubuntu
Diffstat (limited to 'input_win.c')
-rw-r--r-- | input_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input_win.c b/input_win.c index 84bde9be..a2ac1f1d 100644 --- a/input_win.c +++ b/input_win.c @@ -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); |