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

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Sat Mar 15 18:43:06 UTC 2014


Hi Francois,

On Wed, Aug 21, 2013 at 5:27 AM, Thomas De Schampheleire
<patrickdepinguin+buildroot at gmail.com> wrote:
>
> Op 21-aug.-2013 00:32 schreef "Arnout Vandecappelle" <arnout at mind.be> het
> volgende:
>
>
>>
>> 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.
>
> Other programs, like gentoo portage, are able to restore the window title
> correctly. I don't know how, but it is possible.
>
> That said, although I like the idea of easily seeing which package is
> currently building, I also think it should either be perfect or not be at
> all.
>
> As an alternative, is it possible to count the number of make targets /
> packages remaining, and show that in the MESSAGEs? Then you only have to
> scroll up to the last message to get an idea...

Are you still interested in pursuing the principle of this patch? If
so, what about adapting the MESSAGEs instead, as suggested above. This
does not have the problem of not correctly restoring the window title
on abort...

Thanks,
Thomas


More information about the buildroot mailing list