diff options
author | Kalle Wallin <kaw@linux.se> | 2006-01-22 22:41:03 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2006-01-22 22:41:03 +0000 |
commit | 7391a6e7fada2ad1814ec637cfc1b0094a7b4cdb (patch) | |
tree | 4055a70d8ed76703bd692395d18246ba8caa1ced /src | |
parent | 1816059722e8c7b159cfaa265f19e227e2e96a03 (diff) | |
download | mpd-7391a6e7fada2ad1814ec637cfc1b0094a7b4cdb.tar.gz mpd-7391a6e7fada2ad1814ec637cfc1b0094a7b4cdb.tar.xz mpd-7391a6e7fada2ad1814ec637cfc1b0094a7b4cdb.zip |
Backspace fix (wide-char version)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3858 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/wreadln.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wreadln.c b/src/wreadln.c index 2c8c55dd5..d5c25cc8b 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -33,10 +33,12 @@ #include "wreadln.h" #define KEY_CTRL_A 1 +#define KEY_CTRL_C 3 #define KEY_CTRL_D 4 #define KEY_CTRL_E 5 #define KEY_CTRL_G 7 #define KEY_CTRL_K 11 +#define KEY_CTRL_Z 26 #define KEY_BCKSPC 8 #define TAB 9 @@ -575,6 +577,9 @@ wreadln(WINDOW *w, case KEY_CTRL_A: cursor_move_home(); break; + case KEY_CTRL_C: + exit(EXIT_SUCCESS); + break; case KEY_CTRL_D: delete(); break; @@ -594,6 +599,12 @@ wreadln(WINDOW *w, case KEY_CTRL_K: wline[cursor] = 0; break; + case KEY_CTRL_Z: + sigstop(); + break; + case 127: + backspace(); + break; case '\n': case 13: /* ignore char */ |