aboutsummaryrefslogtreecommitdiff
path: root/src/sdtui.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-18 03:06:35 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-18 03:06:35 +0200
commit583b19c6e4e7baba0c5674e84d374ec62defca71 (patch)
treed799119190e0803355e3d1930b48905c471c2f20 /src/sdtui.c
parentde2a576ba5366ec727b082849158464763c44a36 (diff)
downloadtdv-583b19c6e4e7baba0c5674e84d374ec62defca71.tar.gz
tdv-583b19c6e4e7baba0c5674e84d374ec62defca71.tar.xz
tdv-583b19c6e4e7baba0c5674e84d374ec62defca71.zip
Add Ctrl-L to repaint everything
Any serious application has it, so why not this one.
Diffstat (limited to 'src/sdtui.c')
-rw-r--r--src/sdtui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdtui.c b/src/sdtui.c
index be88fbe..e2a5739 100644
--- a/src/sdtui.c
+++ b/src/sdtui.c
@@ -44,6 +44,7 @@
#define KEY_SOH 1 /**< Ctrl-A */
#define KEY_ENQ 5 /**< Ctrl-E */
#define KEY_VT 11 /**< Ctrl-K */
+#define KEY_FF 12 /**< Ctrl-L */
#define KEY_NAK 21 /**< Ctrl-U */
#define KEY_ETB 23 /**< Ctrl-W */
@@ -736,6 +737,10 @@ app_process_curses_event (Application *self, CursesEvent *event)
app_redraw_top (self);
break;
+ case KEY_FF: // Ctrl-L -- redraw everything
+ clear ();
+ app_redraw (self);
+ break;
case KEY_SOH: // Ctrl-A -- move to the start of line
self->input_pos = 0;
app_redraw_top (self);