ex_put.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
1131N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1131N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1828N/A if (over_strike)
static bool phadnl;
putchar(int c)
termchar(c)
wchar_t c;
pstart();
flush1();
*linp++ = c;
fgoto();
flush1();
flush()
flush1();
flush2();
flush1()
register wchar_t c;
#ifdef PRESUNEUC
register int splitcnt = 0;
register int fillercnt = 0;
*linp = 0;
while (*lp)
switch (c = *lp++) {
destcol = 0;
if (destcol)
destcol--;
destcol++;
destline--;
destcol = 0;
fgoto();
c &= TRIM;
length = 0;
fgoto();
#ifdef PRESUNEUC
/* substitute/wrap multicolumn char */
if(mc_wrap) {
while(fillercnt) {
outcol++;
destcol++;
fillercnt--;
c = mc_filler;
p = multic;
while(length2--)
putch(*p++);
outcol--;
destcol--;
#ifdef PRESUNEUC
if(splitcnt) {
splitcnt--;
c = *lp++;
if(fillercnt) {
fillercnt--;
c = mc_filler;
c = *lp++;
--lp;
flush2()
fgoto();
flusho();
pstop();
fgoto()
outline += l;
if (auto_right_margin == 0) {
if (pfast)
outcol = 0;
l = destline;
c = destcol;
destcol = 0;
fgoto();
destcol = c;
if (pfast == 0)
outcol = 0;
plod(0);
plod(0);
int col;
flush1();
#ifdef __STDC__
plodput(char c)
plodput(c)
if (plodflg)
plodcnt--;
putch(c);
if (cursor_home) {
i = destcol;
if (tab && j)
} else if (cursor_to_ll) {
outcol = 0;
i = destcol;
goto dontcr;
goto dontcr;
if (carriage_return) {
outcol = 0;
} else if (newline) {
outline++;
outcol = 0;
outline += j;
outline++;
if (plodcnt < 0)
goto out;
outcol = 0;
if (back_tab)
if (plodcnt < 0)
goto out;
outcol--;
outcol -= j;
outcol--;
outline -= j;
outline--;
if (plodcnt < 0)
goto out;
if (i > destcol)
if (tab)
outcol = i;
outcol = i;
outcol--;
outcol += j;
scrlength = 0;
outcol++;
outcol++;
if (plodcnt < 0)
goto out;
out:
if(plodflg) {
return(plodcnt);
noteinp()
outline++;
endim();
if (enter_ca_mode)
destcol = 0;
if (cursor_address) {
draino()
flusho()
#ifdef TRACE
if (trace)
putnl()
unsigned char *cp;
while (*cp)
#ifdef __STDC__
putch(char c)
putch(c)
#ifdef OLD3BTTY
*obp++ = c;
flusho();
unsigned char *cp;
flush();
setoutt()
#ifdef PRESUNEUC
Putchar = P;
putNFL()
putnl();
flush();
pstart()
if (NONL)
fgoto();
flusho();
normtty++;
saveterm();
pstop()
if (inopen)
phadnl = 0;
draino();
ostart()
ttymode f;
normtty++;
f = tty;
ttcharoff();
tostart();
saveterm();
tostart()
if (ttynbuf[0] == 0) {
register char *tn;
ostop(f)
ttymode f;
normal(f);
tostop();
tostop()
#ifndef CBREAK
vcook()
vraw()
normal(f)
ttymode f;
if (normtty > 0) {
setty(f);
normtty--;
setty(f)
ttymode f;
int isnorm = 0;
ttcharoff();
tty = f;
if (!isnorm)
saveterm();
return (ot);
gTTY(i)
if(termiosflag < 0) {
termiosflag = 0;
for(i = 0; i < NCC; i++)
if(termiosflag)
for(i = 0; i < NCC; i++)
sTTY(i)
if(termiosflag)
for(j = 0; j < NCC; j++)
noonl()