Implement stty ek as documented.

PR:		24063
Submitted by:	Seth Kingsley <sethk@osd.bsdi.com>
This commit is contained in:
Dima Dorfman 2001-08-23 22:31:13 +00:00
parent 81b83ee95d
commit d736886a81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82237

View File

@ -57,6 +57,7 @@ void f_all __P((struct info *));
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 *));
@ -83,6 +84,7 @@ static struct key {
{ "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 },
@ -183,6 +185,16 @@ f_dec(ip)
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;
}
void
f_everything(ip)
struct info *ip;