dvtm

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

commit 2d36b22552fd26ae9f129c2b2810711b4026ab81
parent 8fee3cd233cf18e3a4d37506bf1d3a5791bf3707
Author: Mark Edgar <medgar123@gmail.com>
Date:   Wed,  1 Jan 2014 15:16:39 +0100

Use ERR instead of 0 for modifier-less keybindings.

This allows C-space (NUL) as a normal key or modifier.

Diffstat:
dvtm.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dvtm.c b/dvtm.c @@ -180,6 +180,7 @@ static unsigned int waw, wah, wax, way; static Client *clients = NULL; static char *title; #define COLOR(fg, bg) COLOR_PAIR(vt_color_reserve(fg, bg)) +#define NOMOD ERR #include "config.h" @@ -1399,7 +1400,7 @@ main(int argc, char *argv[]) { handle_mouse(); } else if (is_modifier(code)) { mod = code; - } else if ((key = keybinding(0, code))) { + } else if ((key = keybinding(ERR, code))) { key->action.cmd(key->action.args); } else if (sel && vt_copymode(sel->term)) { vt_copymode_keypress(sel->term, code);