dvtm

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

commit ecba86bf0ac06723aebe8e818876f1ed33649190
parent c31cdd9108467d58771e1cd0bec4ff7559b7b61c
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Thu, 12 Dec 2013 13:01:43 +0100

Remove escapekey functionality

The most common case is already handled by MOD-MOD.

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

diff --git a/config.def.h b/config.def.h @@ -77,7 +77,6 @@ static Key keys[] = { { MOD, '8', { focusn, { "8" } } }, { MOD, '9', { focusn, { "9" } } }, { MOD, 'q', { quit, { NULL } } }, - { MOD, 'G', { escapekey, { NULL } } }, { MOD, 'a', { togglerunall, { NULL } } }, { MOD, 'r', { redraw, { NULL } } }, { MOD, 'X', { lock, { NULL } } }, diff --git a/dvtm.1 b/dvtm.1 @@ -140,9 +140,6 @@ Show/hide the status bar. .B Mod\-r Redraw whole screen. .TP -.B Mod\-G -Escape the next typed key. -.TP .B Mod\-a Toggle keyboard multiplexing mode, if activated keypresses are sent to all visible windows. diff --git a/dvtm.c b/dvtm.c @@ -145,7 +145,6 @@ typedef struct { /* commands for use by keybindings */ static void create(const char *args[]); static void copymode(const char *args[]); -static void escapekey(const char *args[]); static void focusn(const char *args[]); static void focusnext(const char *args[]); static void focusnextnm(const char *args[]); @@ -195,7 +194,6 @@ static const char *shell; static char *copybuf; static volatile sig_atomic_t running = true; static bool runinall = false; -static bool escape_next_key = false; static void eprint(const char *errstr, ...) { @@ -779,11 +777,6 @@ copymode(const char *args[]) { } static void -escapekey(const char *args[]) { - escape_next_key = true; -} - -static void focusn(const char *args[]) { Client *c; @@ -1404,9 +1397,6 @@ main(int argc, char *argv[]) { else if ((key = keybinding(mod, code))) key->action.cmd(key->action.args); mod = ERR; - } else if (escape_next_key) { - keypress(code); - escape_next_key = false; } else if (code == KEY_MOUSE) { handle_mouse(); } else if (is_modifier(code)) {