Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tn3270/sys_curses Eliminate a bunch of terminal hack...
details: https://anonhg.NetBSD.org/src/rev/25fe1331f623
branches: trunk
changeset: 485423:25fe1331f623
user: mycroft <mycroft%NetBSD.org@localhost>
date: Thu Apr 27 16:48:42 2000 +0000
description:
Eliminate a bunch of terminal hackage that we do not need.
diffstat:
usr.bin/tn3270/sys_curses/termout.c | 44 ++----------------------------------
1 files changed, 3 insertions(+), 41 deletions(-)
diffs (97 lines):
diff -r cc68c3329005 -r 25fe1331f623 usr.bin/tn3270/sys_curses/termout.c
--- a/usr.bin/tn3270/sys_curses/termout.c Thu Apr 27 16:44:19 2000 +0000
+++ b/usr.bin/tn3270/sys_curses/termout.c Thu Apr 27 16:48:42 2000 +0000
@@ -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.
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)termout.c 4.3 (Berkeley) 4/26/91";
#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 /* not lint */
@@ -110,10 +110,6 @@
static WINDOW *bellwin = 0; /* The window the bell message is in */
int bellwinup = 0; /* Are we up with it or not */
-#if defined(unix)
-static char *myKS, *myKE;
-#endif /* defined(unix) */
-
static int inHighlightMode = 0;
ScreenImage Terminal[MAXSCREENSIZE];
@@ -674,11 +670,6 @@
InitMapping(); /* Go do mapping file (MAP3270) first */
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 */
ExitString("InitTerminal: Error initializing curses", 1);
/*NOTREACHED*/
@@ -707,27 +698,8 @@
}
#endif /* defined(unix) */
setcommandmode();
- /*
- * By now, initscr() (in curses) has been called (from telnet.c),
- * and the screen has been initialized.
- */
#if defined(unix)
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
DoARefresh();
setconnmode(0);
@@ -751,14 +723,9 @@
standend();
inHighlightMode = 0;
DoARefresh();
+ endwin();
setcommandmode();
- endwin();
setconnmode(0);
-#if defined(unix)
- if (myKE) {
- StringToTerminal(myKE);
- }
-#endif /* defined(unix) */
if (doNewLine) {
StringToTerminal("\r\n");
}
@@ -784,11 +751,6 @@
ConnectScreen()
{
if (screenInitd) {
-#if defined(unix)
- if (myKS) {
- StringToTerminal(myKS);
- }
-#endif /* defined(unix) */
RefreshScreen();
(*TryToSend)();
screenStopped = 0;
Home |
Main Index |
Thread Index |
Old Index