From mboxrd@z Thu Jan 1 00:00:00 1970 From: crossd@gmail.com (Dan Cross) Date: Wed, 1 Nov 2017 14:03:33 -0400 Subject: [TUHS] basic tools / Universal Unix In-Reply-To: <20171101171700.D8E0721937@orac.inputplus.co.uk> References: <20171030141645.6F81C18C0E7@mercury.lcs.mit.edu> <20171101140518.98D10212F3@orac.inputplus.co.uk> <201711011642.vA1Gg0bX016908@freefriends.org> <20171101171700.D8E0721937@orac.inputplus.co.uk> Message-ID: Since `ed` is line-based, one could presumably use it with `rlwrap` or something like that. On Wed, Nov 1, 2017 at 1:17 PM, Ralph Corderoy wrote: > Hi Arnold, > >> > I've idly considered an ed that also maintained a cursor within the >> > line that could be used with vi-like commands. >> >> you want an ed with a cursor, you need only take GNU ed and hook it up >> with GNU readline, and there you go. > > That would allow me to edit the command I'm entering, e.g. `,n'. What > I'm suggesting is the command I'm entering can manipulate the in-line > cursor when I press Enter to submit the command. I don't want > interactive editing of lines in the file; I know where to find that. > :-) > >> If GNU ed doesn't already have such support. > > ed 1.14.2-1 here hasn't. And I wouldn't expect its dependencies to > grow. > > $ ldd /bin/ed > linux-vdso.so.1 (0x00007fff215d4000) > libc.so.6 => /usr/lib/libc.so.6 (0x00007fd89767a000) > /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fd897a31000) > $ > > -- > Cheers, Ralph. > https://plus.google.com/+RalphCorderoy