Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transparent *terms? (re iTerm & X11)



On Sun, Jun 22, 2003 at 09:31:42AM -0400, Peter D. Bevan wrote:
> After reading this thread, I decided to install iTerm.  My impression 
> is that it should work with X11, but...  How do I do that?  How do I 
> run my X apps through iTerm?

iTerm sets the same variable Terminal does, and you can put code in
your .cshrc to set your DISPLAY variable.  I'm afraid I only use bash,
so someone will have to translate the following bourne shell stuff for
me:

case "$TERM_PROGRAM" in
  iTerm.app|Apple*)
    if [ "$DISPLAY" = "" ]; then
      DISPLAY=:0.0; export DISPLAY
    fi
    ;;
esac

xdpyinfo > /dev/null 2>&1
if [ $? -ne 0 ]; then
  unset DISPLAY
fi


-- 
Dr Tim Cutts
Informatics Systems Group
Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SA, UK
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: transparent *terms? (re iTerm & X11) (From: "Peter D. Bevan" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.