Opened 13 years ago

Last modified 10 years ago

#24416 assigned enhancement

Setting xterm titles while building

Reported by: raimue (Rainer Müller) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: xterm title Cc: cooljeanius (Eric Gallager)


port could make use of the xterm title to provide some indicator what is currently doing. When using verbose or debug mode a lot of code will scroll by making it difficult to see what is actually being run at the moment.

Such titles can be set by writing to stdout with special escape sequences, such as:

echo -ne "\033]0;Foo Bar\007"

This will be implemented in the branch branches/xterm-titles.

Change History (5)

comment:1 Changed 13 years ago by raimue (Rainer Müller)

Component: portsbase

comment:2 Changed 13 years ago by raimue (Rainer Müller)

Status: newassigned

The branch is now kind of usable, please test. One known problem is that it does not reset the title after port exited.

comment:3 Changed 13 years ago by raimue (Rainer Müller)

Unfortunately there is no reliable way to get the title in all terminals in order to restore it later. xterm seems to have special control characters for this, but those have not been implemented in A solution would be to always reset to "" or "Terminal" (the default string in A user-defined PROMPT_COMMAND could override this as well.

comment:4 Changed 13 years ago by raimue (Rainer Müller)

Milestone: MacPorts 1.9.0MacPorts Future

comment:5 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.