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:47:44 -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 1395352100 9720 80.91.229.3 (20 Mar 2014 21:48:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 21:48:20 +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:48:30 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 1WQkpB-00068f-NP for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 22:48:29 +0100 Original-Received: from localhost ([::1]:49635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkpB-0000Ij-6m for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2014 17:48:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkow-0000H7-CJ for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:48:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQkou-0002n7-2t for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:48:13 -0400 Original-Received: from mail-vc0-x236.google.com ([2607:f8b0:400c:c03::236]:61205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkot-0002mh-Ta for help-gnu-emacs@gnu.org; Thu, 20 Mar 2014 17:48:12 -0400 Original-Received: by mail-vc0-f182.google.com with SMTP id ks9so1746024vcb.13 for ; Thu, 20 Mar 2014 14:48:11 -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=I17Q/9nEiDtM40SLC5jwQh5n19T5fNUgvKmA8O268SQ=; b=HENDkeEifJNniJB9SSP0k+0kRBfXNe86RNx0coL51EJVTJGRd8m64Msre0yOjSBn4W UrcQkNpb/hErRqNYVuKKmBF6vJLoW7FXGlDmqMsnF5lFHxgitrK7H7uPArlkHuX1BaK+ xMqbMZPpjX6HpGGRKPrmaNtH6r9aWn52NiDcE0vNl9ofBLPNiKKBuyoOdOGQC2DiUbjd sVPrQd3nTWdHHA6UN/sBglkOPNkeaRRirzjnzb7XMDQlqQPMdFGk6Vy4Slf2/PUOWXE7 whc1JN8SoO7qPvLN8JUNQQHqGhEcLhW9f2az4fyjVwrReyu3guEh6nSdvqkXmZogPsBR vISw== X-Received: by 10.58.190.99 with SMTP id gp3mr5344079vec.32.1395352091010; Thu, 20 Mar 2014 14:48:11 -0700 (PDT) Original-Received: by 10.221.42.10 with HTTP; Thu, 20 Mar 2014 14:47:44 -0700 (PDT) In-Reply-To: <532B60C5.4010501@arlsoft.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::236 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:96651 Archived-At: 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. > > >