From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Barnaby Falls" Newsgroups: gmane.emacs.help Subject: RE: ansi/vt100 cursor issue Date: Wed, 19 May 2004 00:51:25 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1084954800 26131 80.91.224.253 (19 May 2004 08:20:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 May 2004 08:20:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 19 10:19:51 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQMIp-0006Ij-00 for ; Wed, 19 May 2004 10:19:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQMAN-0007W8-Om for geh-help-gnu-emacs@m.gmane.org; Wed, 19 May 2004 04:11:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQM2D-00063O-W1 for help-gnu-emacs@gnu.org; Wed, 19 May 2004 04:02:42 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQLrK-0004oO-E8 for help-gnu-emacs@gnu.org; Wed, 19 May 2004 03:52:09 -0400 Original-Received: from [65.54.247.93] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQLrJ-0004nv-O6; Wed, 19 May 2004 03:51:26 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 19 May 2004 00:51:27 -0700 Original-Received: from 63.193.241.76 by by2fd.bay2.hotmail.msn.com with HTTP; Wed, 19 May 2004 07:51:25 GMT X-Originating-IP: [63.193.241.76] X-Originating-Email: [barnabyf@hotmail.com] X-Sender: barnabyf@hotmail.com Original-To: help-gnu-emacs@gnu.org, eliz@gnu.org X-OriginalArrivalTime: 19 May 2004 07:51:27.0391 (UTC) FILETIME=[16F692F0:01C43D76] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18590 >Date: 19 May 2004 08:49:41 +0200 >From: Eli Zaretskii >Subject: Re: ansi/vt100 cursor issue >To: help-gnu-emacs@gnu.org >Message-ID: > > > From: "Barnaby Falls" > > Date: Tue, 18 May 2004 13:25:32 -0700 > > > > I run emacs 21.2 on Linux and want to get the color syntax highlighting >and > > all that. When I run with TERM=vt100 I get a gray and bold highlighting >and > > the cursor appears where it should. > >That's because vt100 doesn't support colors. > > > However, if I run with TERM=ansi, I get > > the cool color syntax highlighting but the cursor is all the way in the >top > > right corner of the window and some text is wrapped and starts at the >end of > > the previous line. > >Sounds like "ansi" does not accurately describe your terminal: the >cursor motion commands are incorrect. > > > This all just regular text emacs, no X. Any ideas on how > > to correct this so I can get emacs working with TERM=ansi? > >What terminal do you _actually_ use? You need to point TERM to the >name of that terminal, not some more-or-less arbitrary name like >"ansi". I use the SSH Secure Shell Client (ssh.com). It allows you to set the terminal answerback type, I have it set to `ansi'. But I just removed that setting and logged on again and got the following: $ echo $TERM vt100 So I guess I'm trying to get colors in a terminal application (SSH) that cannot handle it. Seeing this, I now tried this from a regular XP command prompt and ran ssh to connect to the computer and got the following: $ echo $TERM cygwin The colors show up nicely and I think I see what you mean by using some arbitrary name for the TERM setting. So it looks like the SSH shell client I am using doesn't support ansi. Thanks alot for clearing that up. Barnaby. . . >AFAIK, GNU/Linux systems have TERM set to the right string >automatically, so you shouldn't need to change that yourself. What is >the value of TERM when you log in with an empty .login and shell >startup files?