Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Any way to get this to work when telnetting elsewhere?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Any way to get this to work when telnetting elsewhere?
Authored by: robbchar on May 23, '01 07:59:16PM

I assume that most of this can be done in the .profile of your account on the box your a telnetting into. current my prompt is set locally by this:

MACHINE=`uname -n`; export MACHINE

and that updates with whatever directory. Eventually I will get around to just chopping off the last directory with regular expressions (at least I think thats how its done) but I havent had time. I'm not completely sure, but I bet the title of the window could be done that way too, maybe. Or you could use an alias to do it whenever you telnet, something like this:

alias telnet 'settitle "telnet !*"; telnet !*; settitle $t:t/$cwd:t'

you could make it change the title with any app that you run in that manner. I hope that helps, most of this I havent tried, but it seems like it would work.

good luck


[ Reply to This | # ]