diff options
author | 1997-11-26 04:01:02 +0000 | |
---|---|---|
committer | 1997-11-26 04:01:02 +0000 | |
commit | 010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b (patch) | |
tree | 5ee5e7213ad9b412a927de7effdcb7c8ce4b489e /lib/libcurses/lib_insch.c | |
parent | libform from ncurses 4.1. Post 4.1 patches to be applied in a separate commit. (diff) | |
download | wireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.tar.xz wireguard-openbsd-010b00ebb3f4bdd576ec41ca1d5d0a8994e8fe5b.zip |
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO.
Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_insch.c')
-rw-r--r-- | lib/libcurses/lib_insch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libcurses/lib_insch.c b/lib/libcurses/lib_insch.c index b2f13744e5b..1702208019e 100644 --- a/lib/libcurses/lib_insch.c +++ b/lib/libcurses/lib_insch.c @@ -28,14 +28,16 @@ ** */ -#include "curses.priv.h" +#include <curses.priv.h> + +MODULE_ID("Id: lib_insch.c,v 1.7 1997/04/12 17:43:02 tom Exp $") int winsch(WINDOW *win, chtype c) { chtype *temp1, *temp2; chtype *end; - T(("winsch(%p,'%lx') called", win, c)); + T((T_CALLED("winsch(%p, %s)"), win, _tracechtype(c))); end = &win->_line[win->_cury].text[win->_curx]; temp1 = &win->_line[win->_cury].text[win->_maxx]; @@ -44,11 +46,11 @@ chtype *end; while (temp1 > end) *temp1-- = *temp2--; - *temp1 = _nc_render(win, c, c | win->_attrs); + *temp1 = _nc_render(win, c); win->_line[win->_cury].lastchar = win->_maxx; if (win->_line[win->_cury].firstchar == _NOCHANGE || win->_line[win->_cury].firstchar > win->_curx) win->_line[win->_cury].firstchar = win->_curx; - return OK; + returnCode(OK); } |