SCCS-vsn: lib/libcurses/initscr.c 1.4
SCCS-vsn: lib/libcurses/insch.c 1.3
SCCS-vsn: lib/libcurses/longname.c 1.2
/*
* This routine initializes the current and standard screen.
*
/*
* This routine initializes the current and standard screen.
*
- * %G% (Berkeley) @(#)initscr.c 1.4
+ * @(#)initscr.c 1.4 (Berkeley) %G%
# endif
if ((curscr = newwin(LINES, COLS, 0, 0)) == ERR)
return ERR;
# endif
if ((curscr = newwin(LINES, COLS, 0, 0)) == ERR)
return ERR;
+ clearok(curscr, TRUE);
+ curscr->_flags &= ~_FULLLINE;
if (stdscr != NULL) {
# ifdef DEBUG
fprintf(outf, "INITSCR: stdscr = 0%o\n", stdscr);
if (stdscr != NULL) {
# ifdef DEBUG
fprintf(outf, "INITSCR: stdscr = 0%o\n", stdscr);
* This routine performs an insert-char on the line, leaving
* (_cury,_curx) unchanged.
*
* This routine performs an insert-char on the line, leaving
* (_cury,_curx) unchanged.
*
- * @(#)insch.c 1.2 (Berkeley) %G%
+ * @(#)insch.c 1.3 (Berkeley) %G%
*/
winsch(win, c)
reg WINDOW *win;
*/
winsch(win, c)
reg WINDOW *win;
while (temp1 > end)
*temp1-- = *temp2--;
*temp1 = c;
while (temp1 > end)
*temp1-- = *temp2--;
*temp1 = c;
- win->_lastch[win->_cury] = win->_maxx - 1;
- if (win->_firstch[win->_cury] == _NOCHANGE ||
- win->_firstch[win->_cury] > win->_curx)
- win->_firstch[win->_cury] = win->_curx;
+ touchline(win, win->_cury, win->_curx, win->_maxx - 1);
if (win->_cury == LINES - 1 && win->_y[LINES-1][COLS-1] != ' ')
if (win->_scroll) {
wrefresh(win);
if (win->_cury == LINES - 1 && win->_y[LINES-1][COLS-1] != ' ')
if (win->_scroll) {
wrefresh(win);
/*
* This routine fills in "def" with the long name of the terminal.
*
/*
* This routine fills in "def" with the long name of the terminal.
*
- * %G% (Berkeley) @(#)longname.c 1.1
+ * @(#)longname.c 1.2 (Berkeley) %G%
*/
char *
longname(bp, def)
*/
char *
longname(bp, def)
bp++;
if (*bp == '|') {
bp++;
bp++;
if (*bp == '|') {
bp++;
- cp = bp;
- while (*cp && *cp != ':' && *cp != '|')
- cp++;
+ cp = def;
+ while (*bp && *bp != ':' && *bp != '|')
+ *cp++ = *bp++;