bug-bash
[Top][All Lists]
Advanced

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

Re: Multiline editing breaks if the previous output doesn't end in newli


From: Oğuz
Subject: Re: Multiline editing breaks if the previous output doesn't end in newline
Date: Mon, 31 Oct 2022 03:40:34 +0200

28 Ekim 2022 Cuma tarihinde Albert Vaca Cintora <albertvaka@gmail.com>
yazdı:
>
>         Option A: If the previous command doesn't end in a newline,
> add a newline manually. This is what most shells do.


This sounds wrong. How are you going to know if the previous command ends
in a newline or not then?


>         Option B: Fix the line editor to take into account when the
> prompt doesn't start at column 0.
>
>
Yeah, or add a new prompt sequence (e.g. \N) that prints a newline only if
the cursor is not at column 0.


-- 
Oğuz


reply via email to

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