diff mbox

[V2,1/2] ui/ncurses: define KEY_DC (delete key)

Message ID 20160713051004.31358-1-sam@mendozajonas.com
State Accepted
Headers show

Commit Message

samjonas July 13, 2016, 5:10 a.m. UTC
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 ui/ncurses/nc-cui.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index bd727a5..0c355cc 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -83,6 +83,7 @@  static void cui_start(void)
 	define_key("OF", KEY_END);
 	define_key("\x1b\x5b\x41", KEY_UP);
 	define_key("\x1b\x5b\x42", KEY_DOWN);
+	define_key("\x1b\x5b\x33\x7e", KEY_DC);
 
 	while (getch() != ERR)		/* flush stdin */
 		(void)0;