Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
title_examples [2010-01-22 02:35] asciiphil |
title_examples [2021-02-19 19:49] (current) |
<code> | <code> |
alias postcmd 'echo -ne "^[k\!#:0^[\\"' | alias postcmd 'echo -ne "^[k\!#:0^[\\"' |
| </code> |
| |
| On non-Linux systems like (Free)BSD or Solaris you may use the POSIX version with printf: |
| <code> |
| alias postcmd 'printf "\033k\!#\033\\"' |
</code> | </code> |
| |
| |
As a special case, if the //<default-title>// from above ends in a colon, the name of the currently running program will be appended to the default title instead of replacing it. In the above example, with ''shelltitle "$ |bash"'', if you run pine, the title will change from "bash" to "pine", and back to "bash" when you exit pine. If you use ''shelltitle "$ |bash:"'', the title will change from "bash:" to "bash:pine" and then back to "bash:". | As a special case, if the //<default-title>// from above ends in a colon, the name of the currently running program will be appended to the default title instead of replacing it. In the above example, with ''shelltitle "$ |bash"'', if you run pine, the title will change from "bash" to "pine", and back to "bash" when you exit pine. If you use ''shelltitle "$ |bash:"'', the title will change from "bash:" to "bash:pine" and then back to "bash:". |
| |