[Buildroot] [PATCH] Display current action in title bar

Peter Korsgaard jacmet at uclibc.org
Tue Jun 15 10:20:23 UTC 2010


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 Thomas> On Mon, 14 Jun 2010 23:47:15 +1000
 Thomas> Paul Jones <paul at pauljones.id.au> wrote:

 >> -# MESSAGE Macro -- display a message in bold type
 >> -MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RESET)"
 >> +# MESSAGE Macro -- display a message in bold type and in the title bar
 >> +MESSAGE  = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RESET)" \
 >> +		&& echo -en "\033]2; $($(PKG)_NAME) $($(PKG)_VERSION) $(1) \007"

 Thomas> I've tried this here in my xfterm (XFCE terminal) and it doesn't do
 Thomas> anything. Is my terminal emulator too crappy ?

 Thomas> Anyway, I'm not sure I'd like to see Buildroot hijack the title bar of
 Thomas> my terminal emulator. Or maybe I'm missing the point of your patch ?

I made a similar patch back in February:

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index fbd7f69..c40f83f 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -34,7 +34,7 @@ INFLATE.tgz = $(ZCAT)
 INFLATE.tar = cat
 
 # MESSAGE Macro -- display a message in bold type
-MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RESET)"
+MESSAGE = echo -e "\033]0;$($(PKG)_NAME) $($(PKG)_VERSION) $(1)\007"
 TERM_BOLD := $(shell tput smso)
 TERM_RESET := $(shell tput rmso)

It's sometimes handy to get an idea of what BR is doing while tons of
text scrolls over the screen, but I'm also not convinced we should do it
by default.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list