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


Click here to return to the 'Use other terminal apps with Apple's X11' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use other terminal apps with Apple's X11
Authored by: chris_on_hints on Aug 27, '04 09:08:44AM
I stick with Terminal.app. I have set up a little applescript to open a new terminal window, and link it to X11. I saved the script as an application, and put a "open /path/to/app/XTerminal.app" entry in the application menu for X11.

tell application "Terminal"
	activate
	do script with command "setenv DISPLAY :0 ; clear ; echo 'Terminal linked to X11.'"
	tell window frontmost
		set background color to {0, 0, -32638, -4648}
		set normal text color to {-7118, -7118, -7118}
	end tell
end tell

This does the trick, and has a different text and background colour to the normal .term file used by Terminal.app for non-X11 use.

The applescript section to define text and background colours is also very useful. The best way to use them is to set up a terminal window colours and transparency as you want them, and use the following code to find out the settings:


tell application "Terminal" to set x to the background color of the front window

Replace "background color" with any of the 'window properties' that are found in the dictionary for Terminal.app (use the script editor for this). Paste the script into a script editor window, run it, and the setting you need to use will be in the 'result' box at the bottom.

[ Reply to This | # ]