about summary refs log tree commit diff stats
path: root/input_win.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-02-27 11:47:32 +0000
committerjames <james@jamesbuntu.(none)>2012-02-27 11:49:06 +0000
commit2b0f42be32099db4ce7ab9763d1ea0e2b3fbf051 (patch)
treee0bd398773cdaee22a36f21c31e154cb83c4900c /input_win.c
parent5c9061671e05ad31091fe52f70f37fe0a3129c82 (diff)
downloadprofani-tty-2b0f42be32099db4ce7ab9763d1ea0e2b3fbf051.tar.gz
Check for KEY_BACKSPACE, works on Ubuntu
Diffstat (limited to 'input_win.c')
-rw-r--r--input_win.c2
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);