From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: translating numpad keys in linux terminal Date: Wed, 1 Apr 2015 07:37:46 -0800 Organization: AkWebsoft Message-ID: <20150401153746.GA1637@mail.akwebsoft.com> References: <20150330151214.GA1753@mail.akwebsoft.com> <878uebx6ib.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1427902721 18097 80.91.229.3 (1 Apr 2015 15:38:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 15:38:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 17:38:28 2015 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 1YdKio-0000Mm-GU for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 17:38:26 +0200 Original-Received: from localhost ([::1]:53409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKin-00013y-OG for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 11:38:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKiK-0000jk-K0 for help-gnu-emacs@gnu.org; Wed, 01 Apr 2015 11:38:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdKiG-0007M1-BJ for help-gnu-emacs@gnu.org; Wed, 01 Apr 2015 11:37:56 -0400 Original-Received: from 191-232-4-64.mtaonline.net ([64.4.232.191]:54462 helo=tj49.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdKiG-0007LG-3v for help-gnu-emacs@gnu.org; Wed, 01 Apr 2015 11:37:52 -0400 Original-Received: by tj49.com (Postfix, from userid 501) id C10BE5E09582; Wed, 1 Apr 2015 07:37:46 -0800 (AKDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <878uebx6ib.fsf@kuiper.lan.informatimago.com> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 64.4.232.191 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:103487 Archived-At: * Pascal J. Bourguignon [150401 07:11]: > Michael Heerdegen writes: >=20 > > Tim Johnson writes: > > > >> Is there a way to read the other keys with "kp-" as in gui emacs? > > > > I don't think so. If you have a look at the lossage (C-h l), you see > > what events Emacs receives before doing any key translations. > > > > For the up and kp-up keys for example I see the same events coming fr= om > > the terminal: ESC O A. Thus Emacs can't distinguish the two. > > > > At least that's what happens here. Maybe it is different when using > > a different terminal or different terminal settings. >=20 > It all depends if you can configure your terminal (or terminal > emulator), to send different code sequences to distinguish 1 from kp-1. >=20 > If you use a terminal emulator, they you might be able to patch it more > easily than if you use a physical terminal (which assumedly is > improbable). > --=20 > __Pascal Bourguignon__ http://www.informatimago.com/ > =E2=80=9CThe factory of the future will have only two employees, a man = and a > dog. The man will be there to feed the dog. The dog will be there to > keep the man from touching the equipment.=E2=80=9D -- Carl Bass CEO Aut= odesk Thanks for the replies. I found the same with earlier versions of ubuntu.=20 =20 FYI: The workstation is a mac mini with OS X on dual-boot. I find that iTerm2 translates all but the enter key, but as if numlock is on (which is OK for binding). Oh well, I'll just use X11 emacs, which is as nimble on ubuntu as terminal mode is on the Mac :) thanks again --=20 Tim=20 tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com