On Tue, 9 Aug 2022, at 00:38, Christian Weisgerber wrote:
> The pdksh/ksh88 line editor only uses extremely basic terminal
> controls (backspace, carriage return) and overprinting, so it just
> works on any video terminal. Multiline editing requires arbitrary
> cursor positioning and thus the need to bring in termcap/terminfo.
> Admittedly, after some 35 years that design decision is feeling
> rather outdated.
if you're set -o vi you can hit v to edit in a "proper" editor ($VISUAL?)
maybe there's an equivalent for set -o emacs ?
I didn't know about the multiline thing but surely if you're editing
something that long, a proper editor is going to be more convenient
I just noticed a somewhat odd behaviour in openbsd ksh where
if you are in vi mode and hit v and your commandline buffer is
empty, it bells and won't open the editor. Not sure I'd call it a bug
but it did surprise me
John
No comments:
Post a Comment