mtm | Ncurses-based terminal multiplexer |
| download: https://git.y1.nz/archives/mtm.tar.gz | |
| Files | Log | Refs |
commit 6af156ec2f3313326ef71a3c16dd50902e0f12fe parent ffaa4da70eb7a83162f8609f71a25936ad31c0ed Author: Rob King <rob@frigidriver.com> Date: Thu, 19 Jan 2023 09:34:44 -0600 Add nuke keystroke. Diffstat:
| M | config.def.h | 3 | +++ |
| M | mtm.c | 1 | + |
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))
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.