commit 6af156ec2f3313326ef71a3c16dd50902e0f12fe
parent ffaa4da70eb7a83162f8609f71a25936ad31c0ed
Author: Rob King <rob@frigidriver.com>
Date: Thu, 19 Jan 2023 09:34:44 -0600
Add nuke keystroke.
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -60,6 +60,9 @@
/* does nothing, specifically */
#define BAILOUT KEY(L'c')
+/* clears the scrollback and everything */
+#define NUKE KEY(L'k')
+
/* The force redraw key. */
#define REDRAW KEY(L'l')
diff --git a/mtm.c b/mtm.c
@@ -1102,6 +1102,7 @@ handlechar(int r, int k) /* Handle a single input character. */
DO(true, VSPLIT, split(n, VERTICAL))
DO(true, DELETE_NODE, deletenode(n))
DO(true, BAILOUT, (void)1)
+ DO(true, NUKE, wclear(n->s->win))
DO(true, REDRAW, touchwin(stdscr); draw(root); redrawwin(stdscr))
DO(true, SCROLLUP, scrollback(n))
DO(true, SCROLLDOWN, scrollforward(n))