From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MBR Newsgroups: gmane.emacs.help Subject: Re: Accessing remote Emacs from a Mac terminal emulator Date: Thu, 20 Mar 2014 18:24:23 -0400 Message-ID: <532B6A97.1080400@arlsoft.com> References: <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 1395354283 3149 80.91.229.3 (20 Mar 2014 22:24:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 22:24:43 +0000 (UTC) Cc: help-gnu-emacs To: Jai Dayal Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 23:24:49 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 1WQlOI-00014J-Gc for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 23:24:46 +0100 Original-Received: from localhost ([::1]:49801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQlOH-0008JN-VW for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 18:24:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQlNz-0007rw-ON for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 18:24:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQlNt-0006FF-HL for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 18:24:27 -0400 Original-Received: from hampton-mail.hostforweb.net ([205.234.204.210]:34517 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQlNt-0006FB-B5 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 18:24:21 -0400 Original-Received: from c-24-61-86-182.hsd1.ma.comcast.net ([24.61.86.182]:59109 helo=Epsilon3.local) by hampton.hostforweb.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1WQlNp-0029EJ-DE; Thu, 20 Mar 2014 17:24:18 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: 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:96653 Archived-At: Thanks a lot. For anyone else who wants to try this, the complete path to the checkbox is: Terminal > Preferences > Settings > Keyboard > Use option as meta key Mark On 3/20/14 5:49 PM, Jai Dayal wrote: > Option is what you want, anyways, because Alt is obtained from > pressing Shift+Option, so that's why it didn't show up in your Google > searches :) > > > On Thu, Mar 20, 2014 at 5:47 PM, Jai Dayal > wrote: > > I use a mac. To enable the Alt key as meta, do the following: > > In the terminal (your Terminal.app) go: > Preferences --> Keyboard, and then check the box for "Use option > as meta key". > > Jai > > > On Thu, Mar 20, 2014 at 5:42 PM, MBR > wrote: > > 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. > > > >