diff options
| author | Frank Durda IV <uhclem@FreeBSD.org> | 1997-10-08 03:10:32 +0000 |
|---|---|---|
| committer | Frank Durda IV <uhclem@FreeBSD.org> | 1997-10-08 03:10:32 +0000 |
| commit | f05011e6861df239f9cadb1cd5f1da3492f7769a (patch) | |
| tree | b80da2fd1e0b92c31655747376147e65a597e6b4 /libexec/telnetd/telnetd.c | |
| parent | 610a2e9ca5683c785420b54a49438bee15e48acc (diff) | |
Notes
Diffstat (limited to 'libexec/telnetd/telnetd.c')
| -rw-r--r-- | libexec/telnetd/telnetd.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 8aafdbdb9063..52eab7089819 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: telnetd.c,v 1.10 1997/02/22 14:22:31 peter Exp $ + * $Id: telnetd.c,v 1.11 1997/03/28 15:48:18 imp Exp $ */ #ifndef lint @@ -179,6 +179,22 @@ main(argc, argv) progname = *argv; + /* + * This initialization causes linemode to default to a configuration + * that works on all telnet clients, including the FreeBSD client. + * This is not quite the same as the telnet client issuing a "mode + * character" command, but has most of the same benefits, and is + * preferable since some clients (like usofts) don't have the + * mode character command anyway and linemode breaks things. + * The most notable symptom of fix is that csh "set filec" operations + * like <ESC> (filename completion) and ^D (choices) keys now work + * in telnet sessions and can be used more than once on the same line. + * CR/LF handling is also corrected in some termio modes. This + * change resolves problem reports bin/771 and bin/1037. + */ + + linemode=1; /*Default to mode that works on bulk of clients*/ + #ifdef CRAY /* * Get number of pty's before trying to process options, |
