#include <curses.priv.h>
#include <ctype.h>
-MODULE_ID("$Id: lib_addch.c,v 1.39 1998/02/11 12:13:57 tom Exp $")
+MODULE_ID("$Id: lib_addch.c,v 1.42 1999/07/24 20:01:05 tom Exp $")
/*
* Ugly microtweaking alert. Everything from here to end of module is
line = win->_line+win->_cury;
- if (line->firstchar == _NOCHANGE)
- line->firstchar = line->lastchar = x;
- else if (x < line->firstchar)
- line->firstchar = x;
- else if (x > line->lastchar)
- line->lastchar = x;
+ CHANGED_CELL(line,x);
line->text[x++] = ch;
/* the workhorse function -- add a character to the given window */
{
int x, y;
- int t;
- const char *s;
+ int t = 0;
+ const char *s = 0;
if ((ch & A_ALTCHARSET)
|| ((t = TextOf(ch)) > 127)