help-bash
[Top][All Lists]
Advanced

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

Re: Feature request for PS0


From: Alex fxmbsw7 Ratchev
Subject: Re: Feature request for PS0
Date: Mon, 7 Feb 2022 20:56:01 +0100

i fear those are outdated static runtime numbers, ps 0 1 2 3 4 right
so many i dunno

but, to achieve this you self code it

its just a begin cmd printf cmd and save cmd, then after cmd exited $?

i misunderstand probably.., there \es and \eu i thnk they were named,
for a one position marker

On Mon, Feb 7, 2022 at 8:13 PM Akbarkhon Variskhanov
<akbarkhon.variskhanov@gmail.com> wrote:
>
> Hello.
>
> Would it be possible to add an option or easy configuration of where PS0 is
> placed? I really want to have PS0 appear side-by-side with PS1 but in front
> of it, so that the whole command line looks like this after having been
> read:
> ~ echo "Hello, Wo # not finished typing
> ~ echo "Hello, World!" # finished typing, pressing Enter
> 21:39:44 ~ echo "Hello, World!"
> Hello, World!
> The default behavior is:
> ~ echo "Hello, World!"
> 21:39:44
> Hello, World!
>
> CSI sequences such as \033[A, \033[F or term caps like cuu and tput cuu1
> only work for single-row command lines. As soon as pipelines, multiple
> arguments or long command lines are involved, everything gets scrambled.
> See this thread for details:
> https://ubuntuforums.org/showthread.php?t=2471634
>
> Thanks.



reply via email to

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