|
|
Getting around tcsh bugs
[Editor's note: There are a few other useful terminal titling tricks on the site as well: 1, 2, 3, 4, 5...]Regarding hint #2 here ("Display current jobs in Terminal titles"): Recently Marc Liyanage suggested yet another addendum to it. Namely, instead of echo he uses printf with a variable substitution, thus: sched +0:00 alias postcmd "printf '^[]0;%s^G' 'BACKSLASH!#'"(Note that BACKSLASH stands for the ever-geeklog-unfriendly backslash -- let's hope this finally gets fixed rsn... -- and that I have switched quotes ' and double quotes " in Marc's version.) The advantage is that, at least on my machine, this gets around the two known tcsh bugs already discussed under that hint:
Getting around tcsh bugs
Just a word to confirm that the line with printf, \033 and \007 in place of echo, ^[ and ^G does work in BBEdit Lite. (This applies, of course, also to the precmd line of this hint.) My initial failure was due to the conjunction of three conditions:
Besides that, I was also a little overoptimistic about the postcmd line above -- it still needs a bit more work. But since this is not directly relevant to the present hint, I've put that info where it belongs. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|