diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-02 19:07:50 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-09-02 19:07:50 +0000 |
commit | 738111e63b13c636f74a5b28f33a91cb131981cc (patch) | |
tree | 62007853041ac5b71dabed51304de14261e25e1c | |
parent | 5c9b4d79871e3d80fdd19f20ba19d9c212309eb4 (diff) |
Notes
-rw-r--r-- | lib/libncurses/lib_vidattr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libncurses/lib_vidattr.c b/lib/libncurses/lib_vidattr.c index c8b62e7763f2..0bb56757d94b 100644 --- a/lib/libncurses/lib_vidattr.c +++ b/lib/libncurses/lib_vidattr.c @@ -49,8 +49,12 @@ static void do_color(int pair, int (*outc)(int)) int fg, bg; if ( pair == 0 ) { - tputs(orig_pair, 1, outc); - } else { + if (orig_pair) { + tputs(orig_pair, 1, outc); + } + } else if ((set_a_foreground || set_foreground) && + (set_a_background || set_background) + ) { fg = FG(color_pairs[pair]); bg = BG(color_pairs[pair]); |