[Buildroot] [PATCH] infra: display current task as title of the term window

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Wed Aug 7 08:20:19 UTC 2013


Hi Carsten,

On Wed, Aug 7, 2013 at 10:15 AM, Carsten Schoenert
<c.schoenert at gmail.com> wrote:
> Hello Thomas,
>
> Am 07.08.2013 08:44, schrieb Thomas De Schampheleire:
>> echo -ne "\033]0;something\007"
>>
>> but it doesn't change a thing.
>
> I think the quoting and controling syntax is wrong. The following string
> works here fine in a Gnome terminal.
>
>> echo -ne "\033[2msomething\033[0m other text\n"
>
> Or with a underline and in green.
>
>> echo -ne "\033[4;32msomething\033[0m other text\n"
>
> You need to set up the starting thing with '\033["$foo-color"' and
> finally switch at the end to the to the default back '\033[0m'
>
> More info around colors in the Bash can be found on
> http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
> But that's only for the Bash!

The change François is suggesting is for the terminal title window, it
does not change anything about coloring.
The above commands you gave do not change anything in the title bar
for me, nor in Konsole, nor in gnome-terminal. The second command does
show the green underlined text in both terminals, but as said the
title bar is unchanged.

Best regards,
Thomas



More information about the buildroot mailing list