Re: Are title-bars/tabs necessary?
Jordan Sissel <psionic-s/[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
On 15 February 2007 at 22:39, joerg van den hoff <[email protected]> wrote: > On Thu, Feb 15, 2007 at 01:45:18PM -0500, Jeremy Maitin-Shepard wrote: > well, in case someone is not aware of it: for xterm and the like > (and every 'sufficiently standard' terminal emulator (say, `rxvt') > there is at least always the possibility to use some escape > sequences to directly write into the title bar and use=20 > this facility within some aliases to get meaningful headings. > so, one does not need specific shells to do this. > > e.g., I use tcsh and have set the following in `.cshrc` > (would be rather similar with bash and `.profile') > > alias label 'echo -n "=1B]2;\!*=07"' > alias cd 'cd \!*;label "$hostbasename":$PWD' > tcsh has 'precmd' and 'postcmd' aliases so you can do that kind of thing. alias precmd echo "pre" alias postcmd echo "post" > echo "hi" post hi pre -Jordan