public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Bashrc distinguish between mintty and x-windows xterm
@ 2012-05-22  0:39 Andy
  2012-05-22  3:09 ` Buchbinder, Barry (NIH/NIAID) [E]
  0 siblings, 1 reply; 8+ messages in thread
From: Andy @ 2012-05-22  0:39 UTC (permalink / raw)
  To: cygwin

My bashrc sets the color of the prompt depending on $TERM.  My x-windows xterm
has a white background and the cygwin default terminal, which has a black
background, use to not have $TERM=xterm.  I could distinguish between them in
the bashrc script, and set the prompt colours accordingly.  Now with mintty
emulating an xterm, $TERM takes on the string "xterm" (but it has a black
background).  I would like to find a simple bash script way to tell the
difference between when bashrc is being called from a mintty versus an actual
x-windows xterm.  Can anyone suggest a way?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-25  1:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAGU3OVyzt3r+raKuFEnb1AKkqfzHQy1DPFukJSU8mQyR_3gr9g@mail.gmail.com>
2012-05-25  6:56 ` Bashrc distinguish between mintty and x-windows xterm Andrew Hancock
2012-05-25 14:19   ` Buchbinder, Barry (NIH/NIAID) [E]
2012-05-25 14:53     ` Ken Jackson
2012-05-26 21:10       ` Andy
2012-05-22  0:39 Andy
2012-05-22  3:09 ` Buchbinder, Barry (NIH/NIAID) [E]
2012-06-20  3:08   ` Andy
2012-06-25  1:46     ` Andy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).