Bug#1064343: tput sgr0 adds uncalled-for codes

2024-02-22 Thread Sven Joachim
I would like to add a few more points here, not to prolong the discussion but rather for future reference and for myself. On 2024-02-21 07:06 +0100, Adam Borowski wrote: > On Tue, Feb 20, 2024 at 07:41:42PM +0100, Sven Joachim wrote: >> The reason for including \E(B here is that sgr0 should

Bug#1064343: tput sgr0 adds uncalled-for codes

2024-02-20 Thread Adam Borowski
On Tue, Feb 20, 2024 at 07:41:42PM +0100, Sven Joachim wrote: > > On Tue, Feb 20, 2024 at 04:15:30PM +0800, Paul Wise wrote: > >>$ tput sgr0 | hd > >> 1b 28 42 1b 5b 6d |.(B.[m| > > > > Here's the culprit. The code you asked for is "\e[0m" --

Bug#1064343: tput sgr0 adds uncalled-for codes

2024-02-20 Thread Paul Wise
On Tue, 2024-02-20 at 19:41 +0100, Sven Joachim wrote: > Maybe that is true for the Linux console, but we are talking about xterm here. It is actually gnome-terminal, but I guess that doesn't change things, I presume gnome-terminal emulates xterm faithfully enough. -- bye, pabs