From 583b19c6e4e7baba0c5674e84d374ec62defca71 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 18 May 2013 03:06:35 +0200
Subject: Add Ctrl-L to repaint everything
Any serious application has it, so why not this one.
---
src/sdtui.c | 5 +++++
1 file changed, 5 insertions(+)
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);
--
cgit v1.2.3-70-g09d2