all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: terminal settings for emacs over remote ssh
Date: Sun, 28 Jun 2009 10:45:12 +1000	[thread overview]
Message-ID: <87my7tmbjb.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.1387.1246104383.2239.help-gnu-emacs@gnu.org

Stefan Vollmar <vollmar@nf.mpg.de> 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


       reply	other threads:[~2009-06-28  0:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1387.1246104383.2239.help-gnu-emacs@gnu.org>
2009-06-28  0:45 ` Tim X [this message]
2009-06-27  8:52 terminal settings for emacs over remote ssh Stefan Vollmar

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=87my7tmbjb.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.