From owner-freebsd-bugs Wed Mar 14 17:20: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D46F637B718 for ; Wed, 14 Mar 2001 17:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2F1K2D05504; Wed, 14 Mar 2001 17:20:02 -0800 (PST) (envelope-from gnats) Date: Wed, 14 Mar 2001 17:20:02 -0800 (PST) Message-Id: <200103150120.f2F1K2D05504@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Seth Kingsley Subject: Re: bin/24063: /bin/stty ek doesnt work despite man page saying otherwise Reply-To: Seth Kingsley Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/24063; it has been noted by GNATS. From: Seth Kingsley To: freebsd-gnats-submit@FreeBSD.org, matt@photon.com Cc: Subject: Re: bin/24063: /bin/stty ek doesnt work despite man page saying otherwise Date: Wed, 14 Mar 2001 17:19:10 -0800 It looks like this inconsistancy existed even in 4.4BSD-Lite. Where was this manual page stolen from? Regardless, here is a patch to add the described functionality: Index: key.c =================================================================== RCS file: /ncvs/src/bin/stty/key.c,v retrieving revision 1.11 diff -u -r1.11 key.c --- key.c 1999/08/27 23:15:41 1.11 +++ key.c 2001/03/15 00:47:10 @@ -56,6 +56,7 @@ void f_cbreak __P((struct info *)); void f_columns __P((struct info *)); void f_dec __P((struct info *)); +void f_ek __P((struct info *)); void f_everything __P((struct info *)); void f_extproc __P((struct info *)); void f_ispeed __P((struct info *)); @@ -82,6 +83,7 @@ { "columns", f_columns, F_NEEDARG }, { "cooked", f_sane, 0 }, { "dec", f_dec, 0 }, + { "ek", f_ek, 0 }, { "everything", f_everything, 0 }, { "extproc", f_extproc, F_OFFOK }, { "ispeed", f_ispeed, F_NEEDARG }, @@ -179,6 +181,15 @@ ip->t.c_lflag &= ~ECHOPRT; ip->t.c_lflag |= ECHOE|ECHOKE|ECHOCTL; ip->t.c_iflag &= ~IXANY; + ip->set = 1; +} + +void +f_ek(ip) + struct info *ip; +{ + ip->t.c_cc[VERASE] = CERASE; + ip->t.c_cc[VKILL] = CKILL; ip->set = 1; } -- || Seth Kingsley || BSDi/Open Source Division || sethk@osd.bsdi.com || To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message