vt: explicitly initialize all color pairs to (0, 0)
commit25df24414cd47c62bc72e0cf0ef223f156349331
authorLeonardo Taccari <iamleot@gmail.com>
Wed, 20 Jan 2016 11:13:39 +0000 (20 12:13 +0100)
committerMarc André Tanner <mat@brain-dump.org>
Wed, 20 Jan 2016 11:13:39 +0000 (20 12:13 +0100)
treec0b23c96feda5c9273acbf47fad106300774c48c
parent33764364dfc0e6de2e13e2d856cfa2254d558262
vt: explicitly initialize all color pairs to (0, 0)

The NetBSD curses(3) library by default initializes all
color pairs to (7, 0) i.e. white text on black background.
In contrast with ncurses where pairs are initialized to (0, 0)
by default.

The NetBSD behaviour caused an infinite loop in vt_color_get
because all pairs were seemingly allocated to a reserved color
pair.
vt.c