#24416 closed enhancement (wontfix)
Setting xterm titles while building
| Reported by: | raimue (Rainer Müller) | Owned by: | raimue (Rainer Müller) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | |
| Keywords: | 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 (7)
comment:1 Changed 16 years ago by raimue (Rainer Müller)
| Component: | ports → base |
|---|
comment:2 Changed 16 years ago by raimue (Rainer Müller)
| Status: | new → assigned |
|---|
comment:3 Changed 16 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 16 years ago by raimue (Rainer Müller)
| Milestone: | MacPorts 1.9.0 → MacPorts Future |
|---|
comment:6 Changed 16 months ago by raimue (Rainer Müller)
| Keywords: | xterm title removed |
|---|---|
| Resolution: | → wontfix |
| Status: | assigned → closed |
I would drop this idea as there is no reliable way to get and set the window title across terminal emulators. While xterm defines some sequences to also get the current title, they do not seem to be supported by Terminal.app on macOS. The feature would only be useful if it just worked out of the box without any configuration. Also there is a chance that printing such escape sequences that are not actually understood or misinterpreted by the terminal emulator to produce garbled output.
comment:7 Changed 16 months ago by jmroot (Joshua Root)
| Milestone: | MacPorts Future |
|---|

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