Friday, March 19, 2010

Dynamips and the Leopard Terminal

January 17, 2008 by Greg Ferro · Leave a Comment 

I wanted Dynamips to act more like the way I think and it keeps on open­ing mul­tiple ter­minal win­dows but I like to use iTerm.

gf:~ greg­ferro$ cd Documents/dynalab/Dynagen/Dynagen.app/Contents/Resources/
gf:Resources greg­ferro$ ls
AppSettings.plist configobj.pyc dynagen.ini pemu_lib.pyc
appIcon.icns con­fig­spec dynamips_lib.py script
con​f​Con​sole​.py con​sole​.py dynamips_lib.pyc val​id​ate​.py
confConsole.pyc console.pyc en.lproj validate.pyc
con​figobj​.py dyna­gen pemu_lib.py
gf:Resources greg­ferro$
gf:Resources greg­ferro$
gf:Resources greg­ferro$ sudo vim dynagen.ini
Password:

I want to use iTerm instead of the Terminal that is part of Leopard for the Dynagen /​ dynamips out­put. So you can see the following

# Uncomment below of OS X with Terminal with named tabs (requires Leopard)
#telnet = /usr/bin/osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script with command "telnet %h %p ; exit" in last tab of first window' -e 'tell application "Terminal" to tell window 1 to set custom title to "%d"'

# Uncomment below for OS X with iTerm with named tabs
tel­net = /​usr/​bin/​osascript –e ‘tell app “iTerm“‘ –e ‘activ­ate’ –e ‘set myterm to the first ter­minal’ –e ‘tell myterm’ –e ‘set myses­sion to (make new ses­sion at the end of ses­sions)’ –e ‘tell myses­sion’ –e ‘exec com­mand “tel­net %h %p“‘ –e ‘set name to “%d“‘ –e ‘end tell’ –e ‘end tell’ –e ‘end tell’

The only prob­lem here is that the Terminal win­dow is still used by Dynagen, so I still end up with Leopard ter­minal. I won­der if there is a way to fix this.

Please rate this post:

  Why Rate Posts?
1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!