This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
title_examples [2008-11-05 22:45] 66.150.225.51 Setting title on ssh |
title_examples [2016-11-11 12:50] 131.188.78.95 Typo |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Titles (naming windows) | + | ====== Title Examples ====== |
- | Each screen window has a title. | + | Each screen window has a title. |
- | You can set the default title for your windows with the '' | + | You can set the default title for your windows with the '' |
- | ==== Simple examples ==== | + | ===== Simple examples |
In .screenrc, set the default title of all windows to " | In .screenrc, set the default title of all windows to " | ||
Line 38: | Line 38: | ||
- | ==== Setting the title to the host you ssh'd into ==== | + | ===== Setting the title to the host you ssh'd into ===== |
A nice solution may be found at http:// | A nice solution may be found at http:// | ||
Line 45: | Line 45: | ||
- | ==== Setting the title to the name of the running program ==== | + | ===== Setting the title to the name of the running program |
A common desire is to name one's windows after the programs running in them. A window sitting at a shell prompt might be named " | A common desire is to name one's windows after the programs running in them. A window sitting at a shell prompt might be named " | ||
Line 53: | Line 53: | ||
< | < | ||
alias postcmd 'echo -ne " | alias postcmd 'echo -ne " | ||
+ | </ | ||
+ | |||
+ | On non-Linux systems like (Free)BSD or Solaris you may use the POSIX version with printf: | ||
+ | < | ||
+ | alias postcmd ' | ||
</ | </ | ||