dvtm

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

commit 27ce6bd5d11b54bb168bffa4deae91d7fc240478
parent 80acc7fea74a3c687c71cd0ced8239f2e7527cf9
Author: Ross Mohn <rpmohn@waxandwane.org>
Date:   Mon, 27 Jul 2015 16:29:01 +0200

Make statusbar delimiters configurable via config.def.h

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

diff --git a/config.def.h b/config.def.h @@ -30,6 +30,9 @@ static Color colors[] = { #define URGENT_ATTR NORMAL_ATTR /* curses attributes for the status bar */ #define BAR_ATTR (COLOR(BLUE) | A_NORMAL) +/* characters for beginning and end of status bar message */ +#define BAR_BEGIN '[' +#define BAR_END ']' /* status bar (command line option -s) position */ #define BAR_POS BAR_TOP /* BAR_BOTTOM, BAR_OFF */ /* whether status bar should be hidden if only one client exists */ diff --git a/dvtm.c b/dvtm.c @@ -348,7 +348,7 @@ drawbar(void) { (void)y; int maxwidth = screen.w - x - 2; - addch('['); + addch(BAR_BEGIN); attrset(BAR_ATTR); wchar_t wbuf[sizeof bar.text]; @@ -370,7 +370,7 @@ drawbar(void) { } attrset(TAG_NORMAL); - mvaddch(bar.y, screen.w - 1, ']'); + mvaddch(bar.y, screen.w - 1, BAR_END); attrset(NORMAL_ATTR); move(sy, sx); wnoutrefresh(stdscr);