Eliminate a bunch of terminal hackage that we do not need.
This commit is contained in:
parent
57434b944b
commit
2d75f971b4
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: termout.c,v 1.10 1999/07/26 01:49:09 itohy Exp $ */
|
/* $NetBSD: termout.c,v 1.11 2000/04/27 16:48:42 mycroft Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1988 The Regents of the University of California.
|
* Copyright (c) 1988 The Regents of the University of California.
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)termout.c 4.3 (Berkeley) 4/26/91";
|
static char sccsid[] = "@(#)termout.c 4.3 (Berkeley) 4/26/91";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: termout.c,v 1.10 1999/07/26 01:49:09 itohy Exp $");
|
__RCSID("$NetBSD: termout.c,v 1.11 2000/04/27 16:48:42 mycroft Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -110,10 +110,6 @@ static char *bellSequence = "\07"; /* bell sequence (may be replaced by
|
|||||||
static WINDOW *bellwin = 0; /* The window the bell message is in */
|
static WINDOW *bellwin = 0; /* The window the bell message is in */
|
||||||
int bellwinup = 0; /* Are we up with it or not */
|
int bellwinup = 0; /* Are we up with it or not */
|
||||||
|
|
||||||
#if defined(unix)
|
|
||||||
static char *myKS, *myKE;
|
|
||||||
#endif /* defined(unix) */
|
|
||||||
|
|
||||||
|
|
||||||
static int inHighlightMode = 0;
|
static int inHighlightMode = 0;
|
||||||
ScreenImage Terminal[MAXSCREENSIZE];
|
ScreenImage Terminal[MAXSCREENSIZE];
|
||||||
@ -674,11 +670,6 @@ InitTerminal()
|
|||||||
|
|
||||||
InitMapping(); /* Go do mapping file (MAP3270) first */
|
InitMapping(); /* Go do mapping file (MAP3270) first */
|
||||||
if (!screenInitd) { /* not initialized */
|
if (!screenInitd) { /* not initialized */
|
||||||
#if defined(unix)
|
|
||||||
char KSEbuffer[2050];
|
|
||||||
char *lotsofspace = KSEbuffer;
|
|
||||||
#endif /* defined(unix) */
|
|
||||||
|
|
||||||
if (initscr() == NULL) { /* Initialize curses to get line size */
|
if (initscr() == NULL) { /* Initialize curses to get line size */
|
||||||
ExitString("InitTerminal: Error initializing curses", 1);
|
ExitString("InitTerminal: Error initializing curses", 1);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
@ -707,27 +698,8 @@ InitTerminal()
|
|||||||
}
|
}
|
||||||
#endif /* defined(unix) */
|
#endif /* defined(unix) */
|
||||||
setcommandmode();
|
setcommandmode();
|
||||||
/*
|
|
||||||
* By now, initscr() (in curses) has been called (from telnet.c),
|
|
||||||
* and the screen has been initialized.
|
|
||||||
*/
|
|
||||||
#if defined(unix)
|
#if defined(unix)
|
||||||
nonl();
|
nonl();
|
||||||
/* the problem is that curses catches SIGTSTP to
|
|
||||||
* be nice, but it messes us up.
|
|
||||||
*/
|
|
||||||
signal(SIGTSTP, SIG_DFL);
|
|
||||||
if ((myKS = tgetstr("ks", &lotsofspace)) != 0) {
|
|
||||||
myKS = strsave(myKS);
|
|
||||||
StringToTerminal(myKS);
|
|
||||||
}
|
|
||||||
if ((myKE = tgetstr("ke", &lotsofspace)) != 0) {
|
|
||||||
myKE = strsave(myKE);
|
|
||||||
}
|
|
||||||
if (tgetstr("md", &lotsofspace) && tgetstr("me", &lotsofspace)) {
|
|
||||||
SO = strsave(tgetstr("md", &lotsofspace));
|
|
||||||
SE = strsave(tgetstr("me", &lotsofspace));
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
DoARefresh();
|
DoARefresh();
|
||||||
setconnmode(0);
|
setconnmode(0);
|
||||||
@ -751,14 +723,9 @@ int doNewLine;
|
|||||||
standend();
|
standend();
|
||||||
inHighlightMode = 0;
|
inHighlightMode = 0;
|
||||||
DoARefresh();
|
DoARefresh();
|
||||||
setcommandmode();
|
|
||||||
endwin();
|
endwin();
|
||||||
|
setcommandmode();
|
||||||
setconnmode(0);
|
setconnmode(0);
|
||||||
#if defined(unix)
|
|
||||||
if (myKE) {
|
|
||||||
StringToTerminal(myKE);
|
|
||||||
}
|
|
||||||
#endif /* defined(unix) */
|
|
||||||
if (doNewLine) {
|
if (doNewLine) {
|
||||||
StringToTerminal("\r\n");
|
StringToTerminal("\r\n");
|
||||||
}
|
}
|
||||||
@ -784,11 +751,6 @@ void
|
|||||||
ConnectScreen()
|
ConnectScreen()
|
||||||
{
|
{
|
||||||
if (screenInitd) {
|
if (screenInitd) {
|
||||||
#if defined(unix)
|
|
||||||
if (myKS) {
|
|
||||||
StringToTerminal(myKS);
|
|
||||||
}
|
|
||||||
#endif /* defined(unix) */
|
|
||||||
RefreshScreen();
|
RefreshScreen();
|
||||||
(*TryToSend)();
|
(*TryToSend)();
|
||||||
screenStopped = 0;
|
screenStopped = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user