From: Carlo Florendo <subscribermail@gmail.com>
To: cygwin@cygwin.com
Subject: probe and set terminal type when shell is spawned
Date: Fri, 08 Sep 2006 01:32:00 -0000 [thread overview]
Message-ID: <4500C7E6.4060302@gmail.com> (raw)
Hello,
Is it possible for me to automatically set the TERM variable in bash
depending on the type of my terminal.
For example, these are the things I want to accomplish:
1. If I ssh into the cygwin box from an xterm on a Linux box, I would
like TERM=xterm-color.
2. If I simply spawn a DOS-like shell, I'd like TERM=ansi
3. If I spawn an rxvt console, I'd like TERM=xterm.
I know this can be done manually but would it be possible for us to
create a script to do this?
If so, what cygwin program can we use to probe the terminal type of the
connecting client?
Thank you very much!
Best Regards,
Carlo
--
Carlo Florendo
Network Administrator
Astra Philippines Inc. (www.astra.ph)
Member of the Astra Group (www.astra.co.jp)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
next reply other threads:[~2006-09-08 1:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-08 1:32 Carlo Florendo [this message]
2006-09-08 3:01 ` Igor Peshansky
2006-09-08 3:52 ` Carlo Florendo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4500C7E6.4060302@gmail.com \
--to=subscribermail@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).