[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A one line change I wish to see by default.

From: Zeke Williams
Subject: Re: A one line change I wish to see by default.
Date: Mon, 6 Nov 2023 10:34:28 -0500

Because this is in spirit, emulation of how ex (or at least, how vim's
implementation of ex) works, we can just for short arguments use -ex
and for long arguments --ex-emulation. I think that's a good idea
because if in the future it is decided to allow chaining commands
together and do other stuff ex can do, just put all those under the
umbrella of -ex/--ex-emulation. If you have a better name, I'm open to
ideas. This will probably require making it mutually exclusive from
the traditional command line argument, and maybe see if other flags
will be conflicted with as well.

On Mon, Nov 6, 2023 at 10:30 AM Antonio Diaz Diaz <antonio@gnu.org> wrote:
> Zeke Williams wrote:
> > Would there be any additional gotchas (Other than it won't work with
> > non-ANSI terminals) to using "\x1B[A\r\x1B[J" to work around so to
> > speak not using ncurses, which is what vim's version of ex uses to
> > keep the prompt always at the bottom of the screen with any text from
> > the file above it? If not, I say this can work out nicely.
> GNU ddrescue (which I also maintain) uses this to overwrite the progress
> status on the screen:
>    const char * const up = "\x1B[A";
> So I guess the proposed "\x1B[A\r\x1B[J" may work for ed.
> Any suggestions about the name of the command-line option that would be used
> to enable this behavior?
> Regards,
> Antonio.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]