dvtm

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

commit 3fb9124cadcce9383d1b6b7b277527f110e49ba7
parent a8192a7b13358ce85cb65128314abeee18464212
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sun,  9 Oct 2016 21:51:40 +0200

Increase maximum number of arguments passed to FIFO commands

We use a smaller array in struct Action and hence in the default
configuration in config.def.h to save space.

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

diff --git a/config.def.h b/config.def.h @@ -76,7 +76,7 @@ static Layout layouts[] = { { { MOD, 'V', KEY, }, { toggleview, { tags[TAG] } } }, \ { { MOD, 'T', KEY, }, { toggletag, { tags[TAG] } } }, -/* you can at most specifiy MAX_ARGS (3) number of arguments */ +/* you can specifiy at most 3 arguments */ static KeyBinding bindings[] = { { { MOD, 'c', }, { create, { NULL } } }, { { MOD, 'C', }, { create, { NULL, NULL, "$CWD" } } }, diff --git a/dvtm.c b/dvtm.c @@ -107,11 +107,11 @@ typedef struct { #endif #define CTRL_ALT(k) ((k) + (129 - 'a')) -#define MAX_ARGS 3 +#define MAX_ARGS 8 typedef struct { void (*cmd)(const char *args[]); - const char *args[MAX_ARGS]; + const char *args[3]; } Action; #define MAX_KEYS 3