/*
* Copyright 2001 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*LINTLIBRARY*/
#ifndef lint
static char
#endif /* not lint */
/*
* make the current screen look like "win" over the area coverd by
* win.
*/
#include "curses.ext"
#include <term.h>
#include <string.h>
#ifdef DEBUG
#define DEBUGSTATIC
#else
#define DEBUGSTATIC static
#endif
/* forward declarations */
DEBUGSTATIC void domvcur(int, int, int, int);
int
{
short wy;
int retval;
/*
* make sure were in visual state
*/
if (_endwin) {
}
/*
* initialize loop parameters
*/
ly = 0;
lx = 0;
if (!curwin) {
}
}
}
if (!CA) {
(void) _putchar('\n');
if (!curwin)
}
#ifdef DEBUG
#endif
#ifdef DEBUG
#endif
return (ERR);
else {
}
#ifdef DEBUG
#endif
}
else {
}
else
} else {
}
}
return (retval);
}
/*
* make a change on the screen
*/
DEBUGSTATIC int
{
return (OK);
else if (wx < 0)
wx = 0;
if (lch < 0)
return (OK);
if (curwin)
csp = " ";
else
break;
}
if (!curwin)
else
#ifdef DEBUG
#endif
ly = y;
/*
* check for clear to end-of-line
*/
while (*ce == ' ')
break;
#ifdef DEBUG
#endif
#ifdef DEBUG
" CE\n");
#endif
*csp++ = ' ';
return (OK);
}
}
/*
*/
} else {
}
}
wx++;
if (!MS) {
}
if (!curwin)
0177);
else
if (!curwin) {
} else {
}
return (OK);
return (ERR);
}
if (!curwin)
else
#ifdef FULLDEBUG
#endif
(void) _putchar('\b');
}
nsp++;
}
#ifdef DEBUG
#endif
break;
lx = 0;
ly++;
/*
* xn glitch: chomps a newline after auto-wrap.
* we just feed it now and forget about it.
*/
if (XN) {
(void) _putchar('\n');
(void) _putchar('\r');
}
}
nsp++;
if (!curwin)
csp++;
++wx;
}
else
break;
#ifdef DEBUG
#endif
}
return (OK);
}
/*
* perform a mvcur, leaving standout mode if necessary
*/
DEBUGSTATIC void
{
}
}