dvtm

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

commit c78d29b0d920b6ec3ce3e6612c2b2b5b495542ad
parent c33d1321bbd8bdf2012193da5d1fe2dc439f32f5
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 13 Feb 2015 18:22:49 +0100

Distinguish between return key and new line

Diffstat:
config.def.h | 1+
dvtm.c | 1+
vt.c | 3++-
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -97,6 +97,7 @@ static KeyBinding bindings[] = { { { MOD, 'S', }, { togglebarpos, { NULL } } }, { { MOD, 'M', }, { togglemouse, { NULL } } }, { { MOD, '\n', }, { zoom , { NULL } } }, + { { MOD, '\r', }, { zoom , { NULL } } }, { { MOD, '1', }, { focusn, { "1" } } }, { { MOD, '2', }, { focusn, { "2" } } }, { { MOD, '3', }, { focusn, { "3" } } }, diff --git a/dvtm.c b/dvtm.c @@ -900,6 +900,7 @@ setup(void) { initscr(); start_color(); noecho(); + nonl(); keypad(stdscr, TRUE); mouse_setup(); raw(); diff --git a/vt.c b/vt.c @@ -197,7 +197,8 @@ struct Vt { }; static const char *keytable[KEY_MAX+1] = { - ['\n'] = "\r", + [KEY_ENTER] = "\r", + ['\n'] = "\n", /* for the arrow keys the CSI / SS3 sequences are not stored here * because they depend on the current cursor terminal mode */