curses: correctly pass the color pair to setcchar()
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 that value as an argument
to setcchar().
Signed-off-by: Matthew Kilgore <[email protected]>
Reviewed-by: Samuel Thibault <[email protected]>
Tested-by: Samuel Thibault <[email protected]>
Message-id:
20191004035338[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>