Opened 14 years ago

Last modified 11 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:

Description

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 14 years ago by raimue (Rainer Müller)

Component: portsbase

comment:2 Changed 14 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 14 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 Terminal.app. A solution would be to always reset to "" or "Terminal" (the default string in Terminal.app). A user-defined PROMPT_COMMAND could override this as well.

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

Milestone: MacPorts 1.9.0MacPorts Future

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

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.