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

Arnout Vandecappelle arnout at mind.be
Tue Aug 20 22:32:15 UTC 2013


On 19/08/13 20:49, Thomas De Schampheleire wrote:
[snip]
>  >> However, while testing again, I noticed an annoyance: if the build
>  >> process stops prematurely, for example because the build fails or the
>  >> user interrupts it, the last tab title remains. I would much prefer
>  >> that we can cleanly restore this no matter how buildroot/make stops.
>  >
>  >
>  >  Won't that be the case regardless of whether the build fails or succeeds?
>
> Currently it is indeed, but that could easily be fixed by adding an extra
> such print at the end.

  A print of what? An empty string? Then your window won't have a title 
anymore... There is no way to save the previous window title, so I really 
think that if PS1 doesn't set the window title, then buildroot shouldn't 
either.

  Regards,
  Arnout


>
>  >
>  >  I think this patch is only really suitable for people who have
> something similar in their PS1. Otherwise it will just mess up your
> window title.
>  >
>  >  Also, it should only be done if $TERM == xterm, otherwise you get
> annoying stuff when running buildroot from a text console. And in fact,
> the same is true of the colouring itself, so we don't get these annoying
> escape characters in log files and continuous integration web interfaces.
>
> Agreed.
>
> Best regards,
> Thomas
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F



More information about the buildroot mailing list