Re: [PATCH v2 2/2] curses: correctly pass the color pair to setcchar()

2019-10-13 Thread Samuel Thibault
Matthew Kilgore, le jeu. 03 oct. 2019 23:53:38 -0400, a ecrit: > The current code does not correctly pass the color pair information to > setcchar(), it instead always passes zero. This results in the curses > output always being in white on black. > > This patch fixes this by using PAIR_NUMBER()

[PATCH v2 2/2] curses: correctly pass the color pair to setcchar()

2019-10-03 Thread Matthew Kilgore
The current code does not correctly pass the color pair information to setcchar(), it instead always passes zero. This results in the curses output always being in white on black. This patch fixes this by using PAIR_NUMBER() to retrieve the color pair number from the chtype value, and then passes