diff options
author | Nathan Vance <nathav63@gmail.com> | 2016-02-07 17:56:45 -0500 |
---|---|---|
committer | Nathan Vance <nathav63@gmail.com> | 2016-02-07 17:56:45 -0500 |
commit | 5ff076c4e040563be94726ba8104444713c8a546 (patch) | |
tree | 09fb2a7349804f1cd6f30c4b7846a7669c5022c9 /io.c | |
parent | Updated to work with gcc 5.X (diff) | |
download | 7w-5ff076c4e040563be94726ba8104444713c8a546.tar.gz 7w-5ff076c4e040563be94726ba8104444713c8a546.tar.bz2 7w-5ff076c4e040563be94726ba8104444713c8a546.zip |
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -50,6 +50,14 @@ int io_getkey() { } } +static void turn_off_attributes() { + int i; + for(i = 31; i <= 38; i++) + attroff(COLOR_PAIR(i)); + attroff(A_BLINK); + attroff(A_REVERSE); +} + void io_clearscreen() { clear(); } @@ -59,7 +67,8 @@ void io_printname(int x, int y, int era, int card) { attron(COLOR_PAIR(gettypecolor(cards_gettype(era, card)))); char array[40]; printw("%-23s", cards_getname(era, card, array)); - attrset(A_NORMAL); + //attrset(A_NORMAL); + turn_off_attributes(); printw(" #"); } @@ -227,5 +236,6 @@ void io_printplain(int x, int y, char *s) { void io_printcolor(int x, int y, int color, char *s) { attron(COLOR_PAIR(color)); io_printplain(x, y, s); - attrset(A_NORMAL); + //attrset(A_NORMAL); + turn_off_attributes(); } |