later we'll need to make the choice about whether or not to use it
at runtime.
int directvideo;
WINDOW *conio_scr;
int directvideo;
WINDOW *conio_scr;
/* Some internals... */
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
{
/* Some internals... */
static int colortab(int a) /* convert LINUX Color code to DOS-standard */
{
static void docolor (int color) /* Set DOS-like text mode colors */
{
static void docolor (int color) /* Set DOS-like text mode colors */
{
wattron(conio_scr,COLOR_PAIR(1+(color&7)+((color&112)>>1)));
}
wattron(conio_scr,COLOR_PAIR(1+(color&7)+((color&112)>>1)));
}
/* Call this before any call to linux conio - except the port functions ! */
/* Call this before any call to linux conio - except the port functions ! */
-void __attribute__((constructor)) initconio (void) /* This is needed, because ncurses needs to be initialized */
textcolor(7);
textbackground(0);
}
textcolor(7);
textbackground(0);
}
/* Call this on exiting your program */
void doneconio (void)
/* Call this on exiting your program */
void doneconio (void)
void iostart(int usecurses) {
#ifdef SERGEEV
void iostart(int usecurses) {
#ifdef SERGEEV
textattr(7);
clrscr();
setwnd(FULLSCREEN_WINDOW);
textattr(7);
clrscr();
setwnd(FULLSCREEN_WINDOW);