git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit 05a7ac91f3b262ba20faf6417c8166d72f57818a
parent 10d3388da29621d79d7c093d9e7e28a85814457e
Author: Rob King <jking@deadpixi.com>
Date:   Fri, 17 Feb 2017 10:53:56 -0600

Added -e option.

Diffstat:
Mmtm.c13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -39,7 +39,7 @@ #define CTL(x) ((x) & 0x1f) #define TOPAIR(fg, bg) (monochrome? 0 : (((fg) * 8) | (bg))) -#define USAGE "usage: mtm [-m] [-c KEY] [-s SHELL]" +#define USAGE "usage: mtm [-m] [-e MILLISECONDS] [-c KEY] [-s SHELL]" #define BUFMAX 100 #ifdef __GNUC__ @@ -567,12 +567,13 @@ main(int argc, char **argv) shell = getshell(); int c = 0; - while ((c = getopt(argc, argv, "mc:s:")) != -1){ + while ((c = getopt(argc, argv, "mc:e:s:")) != -1){ switch (c){ - case 'm': monochrome = true; break; - case 'c': commandkey = CTL(optarg[0]); break; - case 's': shell = optarg; break; - default: quit(EXIT_FAILURE, USAGE); break; + case 'm': monochrome = true; break; + case 'c': commandkey = CTL(optarg[0]); break; + case 'e': ESCDELAY = atoi(optarg)? atoi(optarg) : ESCDELAY; break; + case 's': shell = optarg; break; + default: quit(EXIT_FAILURE, USAGE); break; } }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.