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


Click here to return to the 'Another way' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way
Authored by: readparse on Feb 14, '03 12:50:31AM

Yeah, this is what I do in Terminal, and the same kind of thing that I've done for years with other terminal programs (xterm and SecureCRT). It's a very good practice, but there's also something to be said for a program that will change the color of the text when certain programs (or strings, as they case may be) are run. I, for one, have been in one Terminal session that was set up for a remote ssh connection, then been disconnected from that session, to find myself in a local shell that appears at first glance to be a remote shell. Things like that. If the colorization is done at the command level, it can become a whole lot less confusing.

Oh, and the idea of having strongly-highlighted text for the "su" command is ingenious. Love it

John



[ Reply to This | # ]
Another way
Authored by: the_shrubber on Feb 14, '03 07:12:29AM

That's very kind, thanks.

two notes: If you switch windows before the applescript has a chance to run, it'll end up colouring the wrong terminal (doh)..

Also, if you ctrl-C your app, the script won't have a chance to run it's set-the-colour-back stuff, so you'll have to manually perform 'decolorterm" (the decolorterm alias is set with the assumption that your terminal is dark-backgrounded; you should change it to taste)



[ Reply to This | # ]