From mboxrd@z Thu Jan 1 00:00:00 1970 From: bakul@bitblocks.com (Bakul Shah) Date: Wed, 1 Nov 2017 13:16:24 -0700 Subject: [TUHS] basic tools / Universal Unix In-Reply-To: <201711011806.vA1I60bL025852@freefriends.org> References: <20171030141645.6F81C18C0E7@mercury.lcs.mit.edu> <20171101140518.98D10212F3@orac.inputplus.co.uk> <201711011642.vA1Gg0bX016908@freefriends.org> <20171101171700.D8E0721937@orac.inputplus.co.uk> <201711011806.vA1I60bL025852@freefriends.org> Message-ID: <0B657714-7E99-4063-9C09-45EC2A9BCD23@bitblocks.com> > On Nov 1, 2017, at 11:06 AM, arnold at skeeve.com wrote: > > 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. >> :-) > > I don't think I understand what you're getting at. It's been decades, > I think, since I last saw / used open mode, which is what I thought > you wanted, so I think I'm confused. 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.