Skip to content
Snippets Groups Projects
Commit 892cea7a authored by deuce's avatar deuce
Browse files

color_set() is an ncurses extension... only use it for ncurses.

NetBSD doesn't have echochar()
parent dead5ffe
No related branches found
No related tags found
No related merge requests found
......@@ -322,10 +322,12 @@ void textattr(unsigned char attr)
{
attrs |= A_BLINK;
}
attrset(attrs);
colour = COLOR_PAIR( ((attr&7)|((attr>>1)&56))+1 );
#ifdef NCURSES_VERSION_MAJOR
attrset(attrs);
color_set(colour,NULL);
#else
attrset(attrs|colour);
#endif
/* bkgdset(colour); */
bkgdset(colour);
......
......@@ -56,7 +56,10 @@ struct text_info {
extern "C" {
#endif
#define clreol() clrtoeol()
#define putch(x) echochar(x)
#ifdef __NetBSD__
#else
#define putch(x) addch(x)
#endif
short curses_color(short color);
int puttext(int sx, int sy, int ex, int ey, unsigned char *fill);
#define gettext(x1,y1,x2,y2,z) cio_gettext(x1,y1,x2,y2,z)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment