help-bash
[Top][All Lists]
Advanced

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

Feature request for PS0


From: Akbarkhon Variskhanov
Subject: Feature request for PS0
Date: Mon, 7 Feb 2022 21:51:05 +0500

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]