delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/17/13:15:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 17 Nov 2009 13:13:48 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Text editing over ssh
Message-ID: <20091117181348.GA21237@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <797650580911170746t1c341047q17513a48bb2f5923 AT mail DOT gmail DOT com> <797650580911170758ud20145eyc3ab8877f8738d18 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <797650580911170758ud20145eyc3ab8877f8738d18@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Nov 17, 2009 at 10:58:38AM -0500, Ari Army wrote:
>Hey all,
>
>I've had constant problems with editing over ssh (usually just end up
>scp-ing the file over to my machine locally to change files).
>Using any text editor, if i pretend goto line 10 to edit that line and
>use my keyboard arrows to scroll over to word i want to edit, it
>'replaces' the text as i scroll showing what is really on that line
>(which is line 9). Editing/deleting have some side effects as well as
>a result of lines being off by one.
>Not really sure what I can do.
>The TERM env variable was set by another previous developer for this
>user in .bashrc (on the ssh server).
>Should i set this var to cygwin to alleviate problems, since my remote
>terminal will be cygwin... (but i dont want to mess up other people
>using same user but different terminals to ssh in and edit things).

As I told you on irc, the TERM environment variable should be set to
whatever you're using as a terminal.  If that's xterm then it should
be xterm.  In general, setting it in .bashrc is a bad idea since it
should be set automatically by ssh or cygwin.

cgf

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019