projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
lib
/
libcurses
/
refresh.c
diff --git
a/lib/libcurses/refresh.c
b/lib/libcurses/refresh.c
index
a4937c5
..
62673d2
100644
(file)
--- a/
lib/libcurses/refresh.c
+++ b/
lib/libcurses/refresh.c
@@
-169,9
+169,11
@@
makech(win, wy)
reg WINDOW *win;
short wy;
{
reg WINDOW *win;
short wy;
{
- reg ch
ar
*nsp, *csp, *ce;
+ reg ch
type
*nsp, *csp, *ce;
reg short wx, lch, y;
reg int nlsp, clsp; /* last space in lines */
reg short wx, lch, y;
reg int nlsp, clsp; /* last space in lines */
+ char *ce_tcap;
+ static chtype blank[] = {' ','\0'};
wx = win->_firstch[wy] - win->_ch_off;
if (wx >= win->_maxx)
wx = win->_firstch[wy] - win->_ch_off;
if (wx >= win->_maxx)
@@
-186,7
+188,7
@@
short wy;
y = wy + win->_begy;
if (curwin)
y = wy + win->_begy;
if (curwin)
- csp =
" "
;
+ csp =
blank
;
else
csp = &curscr->_y[wy + win->_begy][wx + win->_begx];
else
csp = &curscr->_y[wy + win->_begy][wx + win->_begx];
@@
-199,9
+201,9
@@
short wy;
}
if (!curwin)
}
if (!curwin)
- ce = CE;
+ ce
_tcap
= CE;
else
else
- ce = NULL;
+ ce
_tcap
= NULL;
while (wx <= lch) {
if (*nsp != *csp) {
while (wx <= lch) {
if (*nsp != *csp) {
@@
-212,7
+214,7
@@
short wy;
ly = y;
lx = wx + win->_begx;
while (*nsp != *csp && wx <= lch) {
ly = y;
lx = wx + win->_begx;
while (*nsp != *csp && wx <= lch) {
- if (ce != NULL && wx >= nlsp && *nsp == ' ') {
+ if (ce
_tcap
!= NULL && wx >= nlsp && *nsp == ' ') {
/*
* check for clear to end-of-line
*/
/*
* check for clear to end-of-line
*/
@@
-235,7
+237,7
@@
short wy;
*csp++ = ' ';
return OK;
}
*csp++ = ' ';
return OK;
}
- ce = NULL;
+ ce
_tcap
= NULL;
}
/*
* enter/exit standout mode as appropriate
}
/*
* enter/exit standout mode as appropriate
@@
-260,9
+262,9
@@
short wy;
curscr->_flags &= ~_STANDOUT;
}
if (!curwin)
curscr->_flags &= ~_STANDOUT;
}
if (!curwin)
- _putchar((*csp = *nsp)
& 0177
);
+ _putchar((*csp = *nsp));
else
else
- _putchar(*nsp
& 0177
);
+ _putchar(*nsp);
if (win->_flags&_FULLWIN && !curwin)
scroll(curscr);
ly = win->_begy+win->_cury;
if (win->_flags&_FULLWIN && !curwin)
scroll(curscr);
ly = win->_begy+win->_cury;
@@
-274,12
+276,12
@@
short wy;
return ERR;
}
if (!curwin)
return ERR;
}
if (!curwin)
- _putchar((*csp++ = *nsp)
& 0177
);
+ _putchar((*csp++ = *nsp));
else
else
- _putchar(*nsp
& 0177
);
+ _putchar(*nsp);
# ifdef FULLDEBUG
fprintf(outf,
# ifdef FULLDEBUG
fprintf(outf,
- "MAKECH:putchar(%c)\n", *nsp
& 0177
);
+ "MAKECH:putchar(%c)\n", *nsp);
# endif
if (UC && (*nsp & _STANDOUT)) {
_putchar('\b');
# endif
if (UC && (*nsp & _STANDOUT)) {
_putchar('\b');