From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jai Dayal Newsgroups: gmane.emacs.help Subject: Re: Accessing remote Emacs from a Mac terminal emulator Date: Thu, 20 Mar 2014 17:49:15 -0400 Message-ID: References: <532B60C5.4010501@arlsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1395352181 10572 80.91.229.3 (20 Mar 2014 21:49:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 21:49:41 +0000 (UTC) Cc: help-gnu-emacs To: MBR Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 22:49:51 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 1WQkqU-00080v-HW for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 22:49:50 +0100 Original-Received: from localhost ([::1]:49640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkqU-00016H-77 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 17:49:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkqH-00015g-RK for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:49:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQkqG-0003Nd-Ex for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:49:37 -0400 Original-Received: from mail-ve0-x22b.google.com ([2607:f8b0:400c:c01::22b]:51174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkqG-0003NT-82 for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:49:36 -0400 Original-Received: by mail-ve0-f171.google.com with SMTP id cz12so1672698veb.2 for ; Thu, 20 Mar 2014 14:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=QL/QLGpwdqT7hLkHW/Gn2EbdzU5KcNTYZ/wJXZ/EXXM=; b=lb5xuC4KmAK1EsCMEK4GU55p3E82gl0NybpVy2wXGBrD+/VvczHzg8N0MwXzh5kpmD PSMeRn9AP+n5gKt+T9GKRlj2SycYi7fekDgMhvz8zIOpCmCmghJgh+g2NYnN8NO0lJwk vcf+DgpmvrC0bNxTe02bZ8eO5+v5kyBRT0stHdMHwoujv985eT74j0aBqj97blAs2G1t ETdfJfSM08e1cKvF/mzOw6l/dehcTpy8EIMEGl2dyGXDgByWFhb6NMWmDVuCX1BiIUyL 3MODvy+IuSxcJW6ygqNIh+BS/itRIFr/Sw/GXtUS74IAwFG9UQ5UdhZqsblTomLnEn7T G6YA== X-Received: by 10.52.30.230 with SMTP id v6mr29853536vdh.6.1395352175745; Thu, 20 Mar 2014 14:49:35 -0700 (PDT) Original-Received: by 10.221.42.10 with HTTP; Thu, 20 Mar 2014 14:49:15 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::22b 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:96652 Archived-At: 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. >> >> >> >