git.y1.nz

mtm

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

commit 688b883801c48c354dda250a1acf06154238ca1b
parent 763cca26595ea3408aa7a9943ddd7eb83367806f
Author: Rob King <jking@deadpixi.com>
Date:   Tue,  4 Sep 2018 14:29:32 +0000

Merge branch 'master' of github.com:deadpixi/mtm

Diffstat:
A.gitignore7+++++++
MMakefile6+++---
Mmtm.131++++++++++++++++++++++++-------
Mmtm.c1+
Mmtm.ti6+++---
5 files changed, 38 insertions(+), 13 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,7 @@ +config.h + +*~ +*.swp + +*.o +mtm diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ -CC := gcc -CFLAGS ?= -Os -std=c99 -Wall -Wextra -pedantic -FEATURES ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED +CC ?= gcc +CFLAGS ?= -O3 -std=c99 -Wall -Wextra -pedantic +FEATURES ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED HEADERS ?= LIBPATH ?= DESTDIR ?= /usr/local diff --git a/mtm.1 b/mtm.1 @@ -47,13 +47,30 @@ in combination with the key. By default this is .Dq "g" "." -.It Fl s -Indicate that the host terminal supports -.Xr xterm 1 -style title setting. -Normally, -.Nm -will detect this automatically. +.It Fl b Ar COLOR +Set the title bar color to +.Ar COLOR "," +which may be one of +.Li black "," +.Li red "," +.Li green "," +.Li yellow "," +.Li blue "," +.Li magenta "," +.Li cyan "," +or +.Li white +.Po +the default +.Pc "." +.It Fl s Ar FILE +Specify a status file. +See +.Sx "The Status File" +below. +.It Fl S Ar INTERVAL +Specify an interval in seconds. +The status file will be checked this often. .El .Pp .Ss Usage diff --git a/mtm.c b/mtm.c @@ -26,6 +26,7 @@ #include <sys/select.h> #include <sys/types.h> #include <unistd.h> +#include <wchar.h> #include <wctype.h> #include "config.h" diff --git a/mtm.ti b/mtm.ti @@ -1,6 +1,6 @@ mtm|The Micro Terminal Multiplexer, am, xenl, mir, msgr, npc, cols#80, lines#24, colors#8, it#8, pairs#64, - U8#1, XT, + U8#1, XT, bel=^G, cr=^M, csr=\E[%i%p1%d;%p2%dr, clear=\E[H\E[J, el=\E[K, ed=\E[J, cup=\E[%i%p1%d;%p2%dH, cud1=^J, home=\E[H, civis=\E[?25l, cub1=^H, cnorm=\E[?25h, cuf1=\E[C, cuu1=\E[A, dch1=\E[P, dl1=\E[M, @@ -16,5 +16,5 @@ mtm|The Micro Terminal Multiplexer, setaf=\E[%p1%{30}%+%dm, setab=\E[%p1%'('%+%dm, sitm=\E[3m, ritm=\E[23m, mtm-noutf|The Micro Terminal Multiplexer without UTF-8 support, - @U8, - use=mtm, + @U8, + use=mtm,

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