Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh can't do "echo -n" preceding vared <variable>
- X-seq: zsh-users 29159
- From: Budi <budikusasi@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Zsh can't do "echo -n" preceding vared <variable>
- Date: Fri, 18 Aug 2023 06:00:50 +0700
- Archived-at: <https://zsh.org/users/29159>
- In-reply-to: <CAH+w=7bG4mE_HTTQjdOS_YzTLLbcpDfvrPryqjvkQ0xeA-p_bA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZD84HKsbE086ETnPC5FYOgjbNHMKKmBQcEJ1n6HOsQ2Kg@mail.gmail.com> <785434724.2472140.1692285215448@mail.virginmedia.com> <CAH+w=7bG4mE_HTTQjdOS_YzTLLbcpDfvrPryqjvkQ0xeA-p_bA@mail.gmail.com>
vared -p BEGINNING var
works like a charm
THANKS SO MUCH!
On 8/17/23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Aug 17, 2023 at 8:13 AM Peter Stephenson
> <p.w.stephenson@xxxxxxxxxxxx> wrote:
>>
>> What you can do is use "vared -p prompt" to output something at the
>> start of the line, which doesn't have that problem as vared knows
>> it's there.
>
> More generally, a key difference from bash+readline is that ZLE
> manages the prompts as well as the input.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author