diff --git a/curses.h b/curses.h index fa24a5d1..8c29b679 100644 --- a/curses.h +++ b/curses.h @@ -18,7 +18,7 @@ *************************************************************************** */ /* -$Id: curses.h,v 1.52 2005/12/16 23:27:47 wmcbrine Exp $ +$Id: curses.h,v 1.53 2005/12/17 00:26:16 wmcbrine Exp $ */ /* *---------------------------------------------------------------------- @@ -1778,6 +1778,8 @@ void PDC_CDECL traceon Args(( void )); int PDC_CDECL typeahead Args(( int )); char* PDC_CDECL unctrl Args(( chtype )); void PDC_CDECL use_env Args(( bool )); +int PDC_CDECL vidattr Args(( chtype )); +int PDC_CDECL vidputs Args(( chtype, int (*)(int) )); int PDC_CDECL vline Args(( chtype, int )); int PDC_CDECL waddch Args(( WINDOW*, const chtype )); int PDC_CDECL waddchnstr Args(( WINDOW*, const chtype*, int )); diff --git a/doc/intro.man b/doc/intro.man index 15d8aa24..6b3247f9 100644 --- a/doc/intro.man +++ b/doc/intro.man @@ -407,8 +407,8 @@ FUNCTIONS ungetch getch untouchwin touch use_env util - *** vidattr terminfo - *** vidputs terminfo + vidattr terminfo + vidputs terminfo vline border *** vwprintw printw *** vwscanw scanw diff --git a/os2/pdcurses.def b/os2/pdcurses.def index 9671861a..9c522289 100644 --- a/os2/pdcurses.def +++ b/os2/pdcurses.def @@ -123,6 +123,8 @@ EXPORTS typeahead unctrl use_env + vidattr + vidputs waddch waddchnstr waddstr diff --git a/pdcurses/terminfo.c b/pdcurses/terminfo.c index 75fd632d..9ca510eb 100644 --- a/pdcurses/terminfo.c +++ b/pdcurses/terminfo.c @@ -25,13 +25,15 @@ /* undefine any macros for functions defined in this module */ #undef mvcur +#undef vidattr +#undef vidputs /* undefine any macros for functions called by this module if in debug mode */ #ifdef PDCDEBUG #endif #ifdef PDCDEBUG -char *rcsid_terminfo = "$Id: terminfo.c,v 1.1 2001/01/10 08:27:31 mark Exp $"; +char *rcsid_terminfo = "$Id: terminfo.c,v 1.2 2005/12/17 00:26:17 wmcbrine Exp $"; #endif /*man-start********************************************************************* @@ -40,6 +42,8 @@ char *rcsid_terminfo = "$Id: terminfo.c,v 1.1 2001/01/10 08:27:31 mark Exp $"; Synopsis: int mvcur(int oldrow, int oldcol, int newrow, int newcol) + int vidattr(chtype attr); + int vidputs(chtype attr, int (*putfunc)(int)); X/Open Description: The mvcur() function controls low-level cursor motion with @@ -91,3 +95,32 @@ int newcol; SP->curscol = newcol; return( OK ); } +/***********************************************************************/ +#ifdef HAVE_PROTO +int vidattr(chtype attr) +#else +int vidattr(attr) +chtype attr; +#endif +/***********************************************************************/ +{ +#ifdef PDCDEBUG + if (trace_on) PDC_debug("vidattr() - called: attr %d\n", attr); +#endif + return ERR; +} +/***********************************************************************/ +#ifdef HAVE_PROTO +int vidputs(chtype attr, int (*putfunc)(int)) +#else +int vidputs(attr, putfunc) +chtype attr; +int (*putfunc)(); +#endif +/***********************************************************************/ +{ +#ifdef PDCDEBUG + if (trace_on) PDC_debug("vidputs() - called: attr %d\n", attr); +#endif + return ERR; +} diff --git a/win32/curses.def b/win32/curses.def index beecabf1..ff18615c 100644 --- a/win32/curses.def +++ b/win32/curses.def @@ -182,6 +182,8 @@ EXPORTS typeahead EXPORTS unctrl EXPORTS untouchwin EXPORTS use_env +EXPORTS vidattr +EXPORTS vidputs EXPORTS vline EXPORTS waddch EXPORTS waddchnstr diff --git a/win32/curses_lcc.def b/win32/curses_lcc.def index 84a70f55..c4a3b39b 100644 --- a/win32/curses_lcc.def +++ b/win32/curses_lcc.def @@ -175,6 +175,8 @@ typeahead unctrl untouchwin use_env +vidattr +vidputs vline waddch waddchnstr