Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Apple's X11 XTerm help

Apple's X11 XTerm help
Thread Tools
Dedicated MacNNer
Join Date: Mar 2000
Location: Bronx, NY 10471
Status: Offline
Reply With Quote
May 29, 2004, 09:28 PM
 
Hey all. I am trying to figure out how to make my Xterm look like my terminal. In the respect that i want the bash shell, and i want xterm to run fortune when it loads up

I have successfully gotten the bash shell working. when i do echo $SHELL i get /bin/bash. But it still won't run fortune, like terminal.app does. I have the code to run fortune in .profile. Also, is there anyway i can make it transparant and change the colors like on terminal. Thanks for your help

Mel
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jun 2, 2004, 04:35 PM
 
Stuff in .profile is only run for a login shell (stuff in .bashrc is always run). An xterm that you open is not necessarily a login shell, that depends on the flags set when launching it. In essence, add -ls to make the xterm have a login shell.

You set the color in pretty much the same way. Add "-bg black -fg white" to make the text white and the background black, for instance. you cannot make xterms transparent.

Note: if you add the following to your .profile:

DISPLAY=:0
export DISPLAY

and start a new standard terminal window, it will work like the one started by X11 and you will be able to launch X11 programs from it, provided X11 is running.
     
Dedicated MacNNer
Join Date: Mar 2000
Location: Bronx, NY 10471
Status: Offline
Reply With Quote
Jun 5, 2004, 01:55 PM
 
Wow, thank you for those great tips! I will definitely now use terminal as my x11 program launcher. is there anyway i can launch x11 without it appearing in the dock / menu, like as a service.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Jun 6, 2004, 05:34 PM
 
Originally posted by melman101:
Wow, thank you for those great tips! I will definitely now use terminal as my x11 program launcher. is there anyway i can launch x11 without it appearing in the dock / menu, like as a service.
Yep, you can do just that. Check this out.
     
Dedicated MacNNer
Join Date: Mar 2000
Location: Bronx, NY 10471
Status: Offline
Reply With Quote
Jun 7, 2004, 10:05 AM
 
Thanks very much. Got it to work! It's awesome. Now I just run X11 programs, as if they were part of the native terminal! Awesome.

Mel
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:28 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2