diff options
author | pst <pst@FreeBSD.org> | 1995-09-05 19:30:05 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1995-09-05 19:30:05 +0000 |
commit | b68227ec080e9cc7ba0a76e75f607f3709c60040 (patch) | |
tree | 3c738755b398d3e19885146c07173e805efb399c /eBones/libexec | |
parent | 3398cc6d116e1031623770612af5659630ad9d49 (diff) | |
download | FreeBSD-src-b68227ec080e9cc7ba0a76e75f607f3709c60040.zip FreeBSD-src-b68227ec080e9cc7ba0a76e75f607f3709c60040.tar.gz |
Set erase character for login: prompt.
Submitted by: Peter Wemm & John Capo
Diffstat (limited to 'eBones/libexec')
-rw-r--r-- | eBones/libexec/telnetd/sys_term.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eBones/libexec/telnetd/sys_term.c b/eBones/libexec/telnetd/sys_term.c index de577ed..5616c38 100644 --- a/eBones/libexec/telnetd/sys_term.c +++ b/eBones/libexec/telnetd/sys_term.c @@ -1076,6 +1076,7 @@ extern void utmp_sig_notify P((int)); getptyslave() { register int t = -1; + char erase; #if !defined(CRAY) || !defined(NEWINIT) # ifdef LINEMODE @@ -1092,12 +1093,13 @@ getptyslave() * if linemode was turned on * terminal window size * terminal speed + * erase character * so that we can re-set them if we need to. */ # ifdef LINEMODE waslm = tty_linemode(); # endif - + erase = termbuf.c_cc[VERASE]; /* * Make sure that we don't have a controlling tty, and @@ -1184,6 +1186,8 @@ getptyslave() tty_rspeed((def_rspeed > 0) ? def_rspeed : 9600); tty_tspeed((def_tspeed > 0) ? def_tspeed : 9600); # ifdef LINEMODE + if (erase) + termbuf.c_cc[VERASE] = erase; if (waslm) tty_setlinemode(1); # endif /* LINEMODE */ |