From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MBR Newsgroups: gmane.emacs.help Subject: Accessing remote Emacs from a Mac terminal emulator Date: Thu, 20 Mar 2014 17:42:29 -0400 Message-ID: <532B60C5.4010501@arlsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395351773 5937 80.91.229.3 (20 Mar 2014 21:42:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 21:42:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 22:43:00 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQkjn-0006hw-As for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 22:42:55 +0100 Original-Received: from localhost ([::1]:49612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkjn-0007Lt-10 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 17:42:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkjU-0007LE-Hs for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:42:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQkjK-0000gv-Et for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:42:36 -0400 Original-Received: from hampton-mail.hostforweb.net ([205.234.204.210]:58032 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkjK-0000gi-Ay for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:42:26 -0400 Original-Received: from c-24-61-86-182.hsd1.ma.comcast.net ([24.61.86.182]:58546 helo=Epsilon3.local) by hampton.hostforweb.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WQkjG-001X21-Sv; Thu, 20 Mar 2014 16:42:23 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - arlsoft.com X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: mbr+arlsoft.com/only user confirmed/virtual account not confirmed X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] X-Received-From: 205.234.204.210 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96650 Archived-At: I need to log into a shell on a remote server and then invoke Emacs from the command line. Up until recently my local machine was a Windows laptop. I was running 'putty' locally. Putty's front end is a terminal emulator, and it speaks ssh out its back end. I recently switched to a Mac, so to accomplish the same task I've been running the Mac terminal emulator (/Applications/Utilities/Terminal.app) and at the local command line I run: ssh -p port username@domainname After I log into the remote machine's shell, I start up Emacs, just as I've been doing for ages. Almost everything works just as it used to, BUT when I need to type a keystroke with the Meta modifier (i.e. use the ALT modifier key) the modifier isn't recognized. Although I can get the same effect by using the ESC key, that's often a real pain. For example, if I want to move forward a word at a time, I'll usually type ALT+f, and then release the "f" key and type it again several times without ever releasing the ALT key. To do the same thing with the ESC key, I've got to press ESC, release ESC, press F, release F, repeat until the cursor's where I want it. Clearly putty sends something in the SSH protocol that lets the remote Emacs know when the ALT key is pressed. I don't know if it's the Mac terminal emulator or the Mac implementation of SSH that's failing to pass that information along. Does anyone here have any idea what I need to do to allow the information about the state of the ALT modifier key to be passed to the server where Emacs is running? Mark R.