From ff7b21c51395cbee3f64e40dcabbe49373f6ea39 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sat, 22 Feb 1997 19:44:45 +0000 Subject: [PATCH] Fix terminal handling with regard to ^@ and ^o git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9960 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 4 ++++ src/appl/bsd/krlogin.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 70ce9c0af..7ceafc066 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 22 00:54:06 1997 Sam Hartman + + * krlogin.c (mode): Clean up Posix terminal handling for NetBSD. + Tue Feb 18 18:03:55 1997 Richard Basch * krcp.c: Replace krb5_xfree with krb5_free_data_contents diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index d3c745142..b4288773f 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -1383,6 +1383,12 @@ mode(f) { #ifdef POSIX_TERMIOS struct termios newtty; +#ifndef IEXTEN +#define IEXTEN 0 /* No effect*/ +#endif +#ifndef _POSIX_VDISABLE +#define _POSIX_VDISABLE 0 /*A good guess at the disable-this-character character*/ +#endif switch(f) { case 0: @@ -1398,10 +1404,10 @@ mode(f) /* was __svr4__ */ #ifdef VLNEXT /* there's a POSIX way of doing this, but do we need it general? */ - newtty.c_cc[VLNEXT] = 0; + newtty.c_cc[VLNEXT] = _POSIX_VDISABLE; #endif - newtty.c_lflag &= ~(ICANON|ISIG|ECHO); + newtty.c_lflag &= ~(ICANON|ISIG|ECHO|IEXTEN); newtty.c_iflag &= ~(ISTRIP|INLCR|ICRNL); if (!flow) { -- 2.26.2