On 11/1/17 4:37 PM, arnold(a)skeeve.com wrote:
Bakul Shah <bakul(a)bitblocks.com> wrote:
I think what Ralph wants is something like
"LINES=1 vi"
but without clearing the screen so that commands that
are cursor relative can work. rlwrap and readline don't
edit the current line in the file, only the command input.
OK, that I can understand. It's ages since I played with
readline, but I think you can preload the buffer it works on
(bash does that, no?) so ed + readline could be made to work
that way.
Yes, you can set a startup hook to preload the buffer contents. Bash
uses that for `read -ei'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://cnswww.cns.cwru.edu/~chet/