projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for coming OUT of 3270 mode then back in again
[unix-history]
/
usr
/
src
/
usr.bin
/
tn3270
/
telnet.c
diff --git
a/usr/src/usr.bin/tn3270/telnet.c
b/usr/src/usr.bin/tn3270/telnet.c
index
b116356
..
eefa5c0
100644
(file)
--- a/
usr/src/usr.bin/tn3270/telnet.c
+++ b/
usr/src/usr.bin/tn3270/telnet.c
@@
-26,7
+26,7
@@
static char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)telnet.c 6.
6
(Berkeley) %G%";
+static char sccsid[] = "@(#)telnet.c 6.
7
(Berkeley) %G%";
#endif /* not lint */
/*
#endif /* not lint */
/*
@@
-1857,6
+1857,8
@@
wontoption(option, reply)
default:
fmt = dont;
default:
fmt = dont;
+ hisopts[option] = 0;
+ break;
}
sprintf(nfrontp, fmt, option);
nfrontp += sizeof (doopt) - 2;
}
sprintf(nfrontp, fmt, option);
nfrontp += sizeof (doopt) - 2;
@@
-2005,6
+2007,7
@@
SetIn3270()
Init3270(); /* Initialize 3270 functions */
/* initialize terminal key mapping */
InitTerminal(); /* Start terminal going */
Init3270(); /* Initialize 3270 functions */
/* initialize terminal key mapping */
InitTerminal(); /* Start terminal going */
+ LocalClearScreen(); /* Make sure the screen is clear */
setconnmode();
}
} else {
setconnmode();
}
} else {