public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jeffrey Juliano <juliano@cs.unc.edu>
To: Andreas Zielke <andreas.zielke@sdm.de>
Cc: cygwin@sourceware.cygnus.com
Subject: setting TERM=cygwin in non-cygwin unix [Was: Re: A bit OT: vi intelnet session]
Date: Mon, 21 Aug 2000 04:51:00 -0000	[thread overview]
Message-ID: <Pine.SGI.4.10.10008210728180.380354-100000@evans.cs.unc.edu> (raw)
In-Reply-To: <14752.62218.287000.937055@gargle.gargle.HOWL>

On Mon, 21 Aug 2000, Andreas Zielke wrote:

> I guess this posting is a bit off-topic, but I don't know any news-
> group that would be more appropriate. (If you do, please tell me.)

It can't hurt to get the answer into the mail archive.  This might even be
a FAQ from people learning unix via cygwin.

BTW, the answer applies no only to telnet, but also to ssh, rlogin, etc.


> When I telnet to a machine (running SunOS 5.7), using the telnet-
> program that comes with 1.1.4 Cygwin an start vi I get this error-
> message:
> 
> bash-2.03$ vi
> cygwin: Unknown terminal type
> Visual needs addressable cursor or upline capability

The quick answer is to set your TERM to vt100 or something else that's
pretty close.

The better answer is to make your non-cygwin unix machines aware of the
cygwin TERM type.  There are two ways to do this, depending on if your
unix machine uses termcap or terminfo.

You can get general info about termcap and terminfo by typing 'man
termcap' and 'man terminfo'.  Follow the see-also links for documentation
on the helper programs, including one that converts between termcap and
terminfo sytle information.  Read the manpages; everything you need to
know is there. You may want to ask your sysadmin if your systems use
termcap or terminfo. But they probably use terminfo.

If you use termcap, then you need to add a cygwin entry to the termcap
file.  If you use terminfo, then you need to add a cygwin entry to the
terminfo/c/ directory.

In my environment, we have solaris, irix, hpux, and linux machines.  I
don't have root privilege, so I do this in my home directory and set
TERMINFO env var to point to ~/terminfo.  I've placed into that dir the
terminfo files for any terminal I use.  It looks like this:

~/terminfo/c/cygwin
           i/iris-ansi
           i/iris-ansi-net
           v/vt100
           x/xterm

plus a few others.  Then, my startup files do a

   export TERMINFO=~/terminfo

If you want to be clever, you can set TERMINFO only if your term-type
isn't in the system-wide termfino directory.  That way you ensure that you
use the correct `xterm', if they differ among platforms.

-jeff


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

  parent reply	other threads:[~2000-08-21  4:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-21  2:15 A bit OT: vi in telnet session Andreas Zielke
2000-08-21  3:31 ` Vikas
2000-08-21  3:39   ` Vikas
2000-08-21  4:51 ` Jeffrey Juliano [this message]
2000-08-21  9:06   ` setting TERM=cygwin in non-cygwin unix [Was: Re: A bit OT: vi intelnet session] David Starks-Browning
2000-08-21 10:01     ` Jeffrey Juliano

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=Pine.SGI.4.10.10008210728180.380354-100000@evans.cs.unc.edu \
    --to=juliano@cs.unc.edu \
    --cc=andreas.zielke@sdm.de \
    --cc=cygwin@sourceware.cygnus.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).