tag:blogger.com,1999:blog-31367897.post8933199677847049507..comments2023-10-02T04:08:23.844-05:00Comments on Solaris Jedi: Setting Terminal Titlecghubbellhttp://www.blogger.com/profile/03949787282885281381noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-31367897.post-26266892345208625492009-05-01T15:25:00.000-05:002009-05-01T15:25:00.000-05:00here's my method.
in /etc/profile:
printf "\033...here's my method.<br /><br />in /etc/profile:<br /> printf "\033]0;`uname -n`\007"<br /> <br /><br />then I've got a ~/bin directory with scripts like:<br />~/bin/ssh<br />#!/bin/ksh<br />/usr/bin/ssh $*<br /> print -n "\033]0;`uname -n`\007"<br /><br /><br />put the first in all your system profiles, and the second on your workstation. when you log into a box, it sets the title, when you log out, after using the wrapper script for ssh (similar scripts for other login methods) it resets the title. less output than putting it in PS1.<br /><br />you can use \033]1 to change the icon title, if you have icons (like in cde)michaelhttps://www.blogger.com/profile/03296243598801007358noreply@blogger.comtag:blogger.com,1999:blog-31367897.post-15074020028713786772009-01-21T21:19:00.000-05:002009-01-21T21:19:00.000-05:00Well, actually I'm using in ksh at the moment. I'...Well, actually I'm using in ksh at the moment. I'm not a fan of using bash under Solaris because there's no privileged (RBAC) bash shell. Works like a charm under ksh.cghubbellhttps://www.blogger.com/profile/03949787282885281381noreply@blogger.comtag:blogger.com,1999:blog-31367897.post-30858103918587680752009-01-19T16:12:00.000-05:002009-01-19T16:12:00.000-05:00Hi,It's nice, but you didn't mention something ver...Hi,<BR/>It's nice, but you didn't mention something very important - it works only in bash. Don't try it in sh or ksh.Unknownhttps://www.blogger.com/profile/09828266637849612162noreply@blogger.com