1
0
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Check for KEY_BACKSPACE, works on Ubuntu

This commit is contained in:
James Booth 2012-02-27 11:47:32 +00:00 committed by james
parent 5c9061671e
commit 2b0f42be32

View File

@ -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);