dvtm

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

commit 4d43d2d3b95cbe39e30ef70c89747798dd67eb85
parent ac9d40a7f9da31aa358626cfc9cea8e31c9e1341
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 23 Oct 2014 13:55:42 +0200

Move macro definition

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

diff --git a/config.def.h b/config.def.h @@ -26,6 +26,7 @@ static Color colors[] = { [BLUE] = { .fg = COLOR_BLUE, .bg = -1, .fg256 = 68, .bg256 = -1, }, }; +#define COLOR(c) COLOR_PAIR(colors[c].pair) /* curses attributes for the currently focused window */ #define SELECTED_ATTR (COLOR(BLUE) | A_NORMAL) /* curses attributes for normal (not selected) windows */ diff --git a/config.mk b/config.mk @@ -24,7 +24,7 @@ LIBS = -lc -lutil -lncursesw CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 LDFLAGS += ${LIBS} -DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter +DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-unused-parameter CC = cc STRIP = strip diff --git a/dvtm.c b/dvtm.c @@ -199,8 +199,6 @@ extern Screen screen; static unsigned int waw, wah, wax, way; static Client *clients = NULL; static char *title; -#define COLOR(c) COLOR_PAIR(colors[c].pair) -#define NOMOD ERR #include "config.h"