From 2b0f42be32099db4ce7ab9763d1ea0e2b3fbf051 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 27 Feb 2012 11:47:32 +0000 Subject: [PATCH] Check for KEY_BACKSPACE, works on Ubuntu --- input_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);