dvtm

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

commit d3ab936355972f898529c41fca8ddc9213f426bc
parent 7fd789d315205ee04d21e50f932a109514eacd4e
Author: Mark Edgar <medgar123@gmail.com>
Date:   Sun, 15 Dec 2013 22:22:12 +0100

Move MOD-MOD to config.def.h.

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

diff --git a/config.def.h b/config.def.h @@ -88,6 +88,7 @@ static Key keys[] = { { MOD, KEY_PPAGE, { scrollback, { "-1" } } }, { MOD, KEY_NPAGE, { scrollback, { "1" } } }, { MOD, KEY_F(1), { create, { "man dvtm", "dvtm help" } } }, + { MOD, MOD, { send, { (const char []){MOD, 0} } } }, }; static const ColorRule colorrules[] = { diff --git a/dvtm.c b/dvtm.c @@ -1400,9 +1400,7 @@ main(int argc, char *argv[]) { Key *key; if (code >= 0) { if (mod >= 0) { - if (code == mod) - keypress(code); - else if ((key = keybinding(mod, code))) + if ((key = keybinding(mod, code))) key->action.cmd(key->action.args); mod = ERR; } else if (code == KEY_MOUSE) {