summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_insch.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
commitbda33b7e716d56bf1a9ecccb7e2543889f9ab1d3 (patch)
tree7bc4bcdf70ecc1d045693a309e96b304e1b49c33 /lib/libcurses/lib_insch.c
parentcd15e61d557c4704743905eae7b88ae927cf0394 (diff)
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.c10
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);
}