From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: terminal settings for emacs over remote ssh Date: Sun, 28 Jun 2009 10:45:12 +1000 Organization: Rapt Technologies Message-ID: <87my7tmbjb.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246211246 19388 80.91.229.12 (28 Jun 2009 17:47:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2009 17:47:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 19:47:19 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MKyTF-0002zq-NS for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2009 19:47:18 +0200 Original-Received: from localhost ([127.0.0.1]:49317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MKyTF-0004EU-6V for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jun 2009 13:47:17 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:XN2IcsotcaOsPebgRrTD5sY685M= Original-Lines: 66 Original-NNTP-Posting-Host: 8bddd7d5.news.astraweb.com Original-X-Trace: DXC=`a=_0fPPWde5ljRKX^a8BhL?0kYOcDh@j3jG[IJI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65609 Archived-At: Stefan Vollmar writes: > Hello, > > this is probably a very old question, sorry for having to ask again: I want > to use Emacs 22.2.1 (Fedora Core 10, x86_64-redhat-linux-gnu) using a > remote ssh-connection from a MacOS X terminal, also from a PuTTY session > on a windows box (both in a rather old-fashioned way). In both cases I > find that when opening a text in Emacs, the very first line starts at the > right-most column. Moving down with the cursor will increment the line > position not in the status line (last line) but rather in the last but one > line. > > My guess is that the terminal emulation is the problem, I have tried vt100 > and xterm, as mentioned above, it is nothing MacOS or Windows specific > wrong with the ssh-connection, I also made sure not to use any Emacs > customizations. > I suspect your right - it does sound like a terminal I/O issue. What is the $TERM variable on the remote system? What is its value on the local system (Mac). When I've run into this problem, the cause has generally been that the remote system doesn't recognise the term settings of the local system. Setting to vt100 or xterm often works, but if these settings are not compatible with your local term settings, you can get weird behavior. I use to get this problem when logging in from a console on Linux to a non-linux remote host. The remote host wouldn't recognise the Linux console terminal name and depending on the system, would set the term to 'dumb' or something similar. I even had this problem when colour xterms first came out because older unix boxes didn't understand a term type of xterm-color. The three solutions I used were to 1. Force a compatible term type by setting the TERM variable on the remote system before starting emacs 2. Copy the terminal definition into the terminfo database on the remote system 3. Setting my local TERM variable to something that is recognised by the remote system. Note that I've not used windows since 3.11, so have no idea how all this stuff interacts with windows. If your Mac term setting is something 'unusual' - particularly if its something only recognised on Mac systems, either you need to find a compatible term setting for the remote system or you need to change the local system to something more 'standard'. >From memory, I think some of this may be covered in the emacs FAQ. Maybe check that out and see if it gives some hints. It comes bundled with emacs and is available from the help menu HTH Tim > -- tcross (at) rapttech dot com dot au