On 2022-08-08, Federico Giannici <giann...@neomedia.it> wrote:

> What I really miss is multiline editing of current (very long) commands 
> (ksh simply horizontally "scrolls", showing only a part of the command 
> line).
>
> I know that in standard ksh this functionality is activated with "set -o 
> multiline", but under OpenBSD (7.1 amd64) it gives this error:

OpenBSD's ksh is a tweaked pdksh, which in turn was intended as a
clone of ksh88, which simply did not implement multiline editing,
and so OpenBSD's ksh does not either.

"set -o multiline" and the related functionality is a ksh93 feature.

> So, is there any way to activate the multiline option in ksh?

No.

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.

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to