* - Only implements a small subset of the (n)curses functions.
* - Only implements very few sanity checks (for smaller code).
* - Thus: Don't do obviously stupid things in your code.
- * - Doesn't implement the 'form', 'panel', and 'menu' extentions.
+ * - Doesn't implement the 'form', 'panel', and 'menu' extensions.
* - Only implements C bindings (no C++, Ada95, or others).
* - Doesn't include wide character support.
*/
}
/*
- * Implementations of most functions marked 'implemented' in tinycurses.h:
+ * Implementations of most functions marked 'implemented' in include/curses.h:
*/
// int baudrate(void) {}
// int flash(void) {}
// int flushinp (void) {}
// WINDOW *getwin (FILE *) {}
-
bool has_colors (void) { /* TODO */ return(*(bool *)0); }
// bool has_ic (void) {}
// bool has_il (void) {}
return stdscr;
}
-
// int intrflush (WINDOW *,bool) {}
/* D */ bool isendwin(void) { return ((SP == NULL) ? FALSE : SP->_endwin); }
// bool is_linetouched (WINDOW *,int) {}
}
/* D */ int nl(void) { SP->_nl = TRUE; return OK; }
int nocbreak(void) { /* TODO */ return(*(int *)0); }
-
/* D */ int noecho(void) { SP->_echo = FALSE; return OK; }
/* D */ int nonl(void) { SP->_nl = FALSE; return OK; }
// void noqiflush (void) {}
}
return OK;
}
-
// int wgetnstr (WINDOW *,char *,int) {}
int whline(WINDOW *win, chtype ch, int n)
{
win->_flags |= _HASMOVED;
return OK;
}
-
-
int wnoutrefresh(WINDOW *win)
{
// FIXME.
return OK;
}
-
int wprintw(WINDOW *win, const char *fmt, ...)
{
va_list argp;