The NEXTSTEP/OpenStep FAQ

! to the table of contents
< to the previous section:
> to the next section:


9.2 Is there any way to change the text in the title bar of a terminal window?

There is no way of changing the title bar of a Terminal.app window in 2.x; in 3.x there is. Check Preferences (Title Bar): set CustomTitle, type in the title, and hit CR (or Set Window) and voila!

[From: [email protected] (Andre Roberge)]

Actually, there is a way to change the title bar of a Terminal window in 2.x (at least in 2.1 which is what I am using). It is somewhat limited but it might be useful to some.

The trick is to make a symbolic link between /bin/csh (or whichever shell one wishes to use) and a file in / named "Whatever_you_want_to_appear_in_the_title_bar". Then select this new "shell" in the terminal preference and, voila!, you'll have your terminal window with /Whatever_you..... in the title bar.

You can edit Stuart's titlebar interactively from the "Window..." Inspector (Command-3).

Stuart provides emulation of certain Operating System Command (OSC) sequences which can be used to modify the titlebar under subprocess control.

Stuart can change the title of the current window from the command line. In Stuart is possible to get more descriptive titles by linking /usr/ucb/rsh to /usr/hosts/. Then by adding /usr/hosts to your Stuart ShellPath you can then get the hostname into the title bar:

$ dwrite StuartShellPaths :/usr/hosts You should then type in the hostname as the shell to invoke (disable the "Shell reads .login file" for this. You can also add hosts to your .Stuartrc file: Shell=golem.ps.uci.edu SourceDotLogin=NO WinLocX=545 WinLocY=563 Lines=24 | WinLocX=76 WinLocY=833

For the localhost, link /bin/csh to /usr/hosts/, or even better /usr/local/bin/tcsh instead of using rsh.

[From: Garance A Drosehn ]

For what it's worth, I do this with a script called "telnet_to" and a (bash) function called "telnet_window". The function simply does a

local soil_pars="-Lines 32 -Keypad YES -Reverse \ YES -Strict YES -TestExit YES"; soil -Shell "telnet_to $1" $soil_pars

and the script is just:

#!bin/sh /usr/ucb/telnet $* echo ' ' echo ' --> telnet exited, press enter to close window.' read -r Waste_Var exit 0

This has a number of advantages, not the least of which being that I can pop up a "telnet_window" to anywhere. I don't have to create links for each host (though I do create aliases for the most common hosts), and I can type "telnet_window" (or, e.g., "tel_aix") as a unix command.

Also, if I lose the connection suddenly then the window stays around until I get a chance to see what happened. I use telnet instead of rsh because I generally connect to hosts which won't accept rsh's.



This document was converted from LaTeX using Karl Ewald's latex2html.