dvtm

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

commit 801ee1ef836a4d2568e764d9f57abdae15736805
parent 9e63513c516e0a7503ff83973648ace5760faf79
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Sun, 16 Sep 2012 21:20:55 +0200

vt: make sure that the most common color is always available

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
vt.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/vt.c b/vt.c @@ -1605,6 +1605,7 @@ static void init_colors(void) has_default_colors = (use_default_colors() == OK); color_pairs_max = MIN(COLOR_PAIRS, MAX_COLOR_PAIRS); color2palette = calloc((COLORS + 2) * (COLORS + 2), sizeof(short)); + vt_color_reserve(COLOR_WHITE, COLOR_BLACK); } void vt_init(void)