dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 5119a560000987fba0adc359136620ce104fb486
parent ae16278a263557281b7c318c6a0b945fa58ca6a6
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Fri, 26 Sep 2008 20:21:58 +0200

Add mappings for shifted arrow keys

Diffstat:
madtty.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/madtty.c b/madtty.c @@ -149,6 +149,14 @@ static char const * const keytable[KEY_MAX+1] = { [KEY_DOWN] = "B", [KEY_RIGHT] = "C", [KEY_LEFT] = "D", +#ifdef KEY_SUP + [KEY_SUP] = "\e[1;2A", +#endif +#ifdef KEY_SDOWN + [KEY_SDOWN] = "\e[1;2B", +#endif + [KEY_SRIGHT] = "\e[1;2C", + [KEY_SLEFT] = "\e[1;2D", [KEY_BACKSPACE] = "\177", [KEY_HOME] = "\e[1~", [KEY_IC] = "\e[2~",