cc: [email protected] Subject: Re: Re: Re: Re: [ast-users] Ksh93 quivalence of Vim mapping `inoremap jj <ESC>'? --------
> > > > With a few changes I should be able to add a timeout to a future > > ksh93 release. > > > > You should be able to do something like the follwing when ^U arrives: > > if read -n1 -t.5 c && [[ $c == j ]] > > then # process ^Uj > > else .sh.edtext=^U$c > > fi > > for a half second timeout after the ^U is entered. > > > > This doesn't work now, but I think that can modify read so that > > it works in a future release. > > That would be nice. The only issue I see with it is that read > echoes the received character and thus messes up the input line, > would it be possible to add an option to the read builtin to > prevent that (e.g. like the "-s" option of the bash read builtin) > without having to fiddle with stty? > -- > Guido Berhoerster > Yes, you are correct. Either read would have to know that it was called during a KEYBD trap and remain in no-echo raw mode, or I would need a no-echo more to read and not restore the mode when read completes. I can't use -s since it is already use by read. I would pick -e for no echo. That is why I said that it would be for a future release. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
