Re: Multi-line PS1 color disappearance problem

2023-12-29 Thread Miro Palmu via Bug reports for the GNU Bourne Again SHell
On 12/26/23 21:47, Chet Ramey wrote: On 12/22/23 2:25 AM, em...@miropalmu.cc wrote: But I did not know that '\e' is valid ANSI escape sequence prefix. It's not in the ISO C definition of a character constant or string literal. It's a common extension that bash and other shells implement --

Re: Multi-line PS1 color disappearance problem

2023-12-26 Thread Chet Ramey
On 12/22/23 2:25 AM, em...@miropalmu.cc wrote: But I did not know that '\e' is valid ANSI escape sequence prefix. It's not in the ISO C definition of a character constant or string literal. It's a common extension that bash and other shells implement -- common enough that it's in the POSIX

Re: Multi-line PS1 color disappearance problem

2023-12-22 Thread Greg Wooledge
On Fri, Dec 22, 2023 at 07:25:30AM +, email--- via Bug reports for the GNU Bourne Again SHell wrote: > On 2023-12-21 17:32, Alex Ratchev wrote: > > > do u really PS1=\[\033 etc ? > > > > try PS1='\[\e...' > > > > in ' quotes > > I forgot quotes from the email. But I did not know that '\e'

Re: Multi-line PS1 color disappearance problem

2023-12-21 Thread email--- via Bug reports for the GNU Bourne Again SHell
On 2023-12-21 17:55, Chet Ramey wrote: Think of the portion of a multi-line prompt before the final newline as a static string that will not affect the display of the last line. Yep. Makes sense. On 2023-12-21 17:32, Alex Ratchev wrote: do u really PS1=\[\033 etc ? try PS1='\[\e...' in

Re: Multi-line PS1 color disappearance problem

2023-12-21 Thread Chet Ramey
On 12/21/23 11:40 AM, email--- via Bug reports for the GNU Bourne Again SHell wrote: Bash Version: 5.2 Patch Level: 21 Release Status: release Description:     When PS1 contains line break and it sets color with ansi escape code before the line break,     then in any terminal emulator

Re: Multi-line PS1 color disappearance problem

2023-12-21 Thread alex xmb sw ratchev
On Thu, Dec 21, 2023, 18:26 email--- via Bug reports for the GNU Bourne Again SHell wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt > -fexceptions

Multi-line PS1 color disappearance problem

2023-12-21 Thread email--- via Bug reports for the GNU Bourne Again SHell
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection