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: Thu, 2 Apr 2015 18:56:58 -0800 Organization: AkWebsoft Message-ID: <20150403025658.GA1680@mail.akwebsoft.com> References: <87k2xu5doo.fsf@debian.uxu> <87iodeujdh.fsf@debian.uxu> <874moyugoz.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1428029849 7533 80.91.229.3 (3 Apr 2015 02:57:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Apr 2015 02:57:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 03 04:57:20 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 1YdrnJ-0005uT-My for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Apr 2015 04:57:17 +0200 Original-Received: from localhost ([::1]:60736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdrnI-0000E1-Lx for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Apr 2015 22:57:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydrn8-0000Dl-2k for help-gnu-emacs@gnu.org; Thu, 02 Apr 2015 22:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ydrn4-0007Yq-QG for help-gnu-emacs@gnu.org; Thu, 02 Apr 2015 22:57:06 -0400 Original-Received: from 191-232-4-64.mtaonline.net ([64.4.232.191]:49187 helo=tj49.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ydrn4-0007YD-Hg for help-gnu-emacs@gnu.org; Thu, 02 Apr 2015 22:57:02 -0400 Original-Received: by tj49.com (Postfix, from userid 501) id 80E025E3082E; Thu, 2 Apr 2015 18:56:58 -0800 (AKDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <874moyugoz.fsf@debian.uxu> 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:103525 Archived-At: * Emanuel Berg [150402 17:49]: > Dan Espen writes: > > >> Perhaps someone in this list that is familiar with > >> just exactly what the '-nw' option does can > >> enlighten us? > > > > From the docs: > > > > Don't communicate directly with the window system, > > disregarding the DISPLAY environment variable even > > if it is set. This means that Emacs uses the > > terminal from which it was launched for all its > > display and input. > > > > The terminal gets and sends X Events. > > > > Emacs gets and sends _characters_ to and from > > the terminal. > > > > Sometimes Emacs may get signals from the terminal, > > like when the terminal is resized. > > > > Emacs in a terminal does not see X Events. > > > > So, your issue is what does the terminal send to Emacs > > when you hit a KP key, > > > > Terminals like rxvt and xterm give you > > complete control. > > > > gnome-terminal, sorry, I don't use it. > > Case closed. Indeed. My workstation is a Mac Mini. To recap, I get unique translations of numeric keypad input to 'emacs' running from iTerm2. I didn't get the same uniqueness when I booted the same machine into ubuntu 14.04 and ran 'emacs -nw' from gnome-terminal. The terminal emulator controls what emacs gets when it is in terminal - this from the good people who responded to my inquiries. As has been pointed out, rxvt _does_ translate numeric keypad uniquely (unlink gnome-terminal). By starting rxvt in my setup and then invoking emacs -nw and then running -c, I can see that M-O sequences are being generated (that is Alt-Shift-(the capital letter "O")). If I so choose then I could build unique definitions of keypad input by runing emacs in terminal mode from rxvt (or presumable xterm). X11 emacs in ubuntu is preferable to AquaMacs on OS X, (for me anyway) and I can just use it. Thanks for all the input. Great thread. cheers -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com