From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Bogatov Newsgroups: gmane.emacs.help Subject: Loadkeys trickery Date: Fri, 28 Nov 2014 00:58:25 +0300 Organization: Church of GNU Message-ID: <20141127215825.GA7558@self> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" X-Trace: ger.gmane.org 1417125605 22484 80.91.229.3 (27 Nov 2014 22:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2014 22:00:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 22:59:59 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 1Xu76T-0003Ny-0e for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2014 22:59:57 +0100 Original-Received: from localhost ([::1]:41627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xu76S-000672-NW for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2014 16:59:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xu76B-00066k-OJ for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 16:59:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xu765-00029T-RK for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 16:59:39 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xu765-00029P-NW for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 16:59:33 -0500 Original-Received: from host86-163-167-219.range86-163.btcentralplus.com ([86.163.167.219]:48918 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Xu764-0008BZ-TZ for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 16:59:33 -0500 Content-Disposition: inline X-Haskell-Quote: IO String contains a String in the same way that /bin/ls contains a list of files X-Perfect-World: There should be one -- and preferably only one -- obvious way to do it. User-Agent: Mutt/1.5.22.1 (2013-10-16) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:101245 Archived-At: --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello! I work in linux terminal. I use fbterm and tmux. I use loadkeys to get more keychords. Here is example of my config: keymaps 0-255 alt keycode 1 = 0xFFFF control keycode 105 = 0xFFFE control keycode 106 = 0xFFFD control keycode 103 = 0xFFFC control keycode 108 = 0xFFFB ctrll keycode 103 = 0xFFFA shift keycode 57 = 0xFFF9 keycode 56 = Alt keycode 100 = AltGr keycode 125 = ShiftL keycode 127 = ShiftR keycode 29 = CtrlL keycode 97 = CtrlR keycode 58 = Control These 0xFFFF are some tibetian symbols, their exact values does not matter. Under linux console, I can happily press (Shift + Space(=keycode 57)) and get strange symbol, and bind it to some command in emacs. If I start tmux, and press (Shift + Space), I get same strange symbol into bash prompt. It is great. But! If I start emacs under tmux and press Shift+Space, emacs interprets it as F10 and open text menu. I checked, Vim works as expected (prints tibetian symbol). Usually I run fbterm and tmux in it. Fbterm breaks nothing, but adds 256 colors. Interesting enough, if I set TERM=linux under tmux, things works well. I could set it for emacs, but I am unwilling to give up 256 colors. Also I tried screen over tmux. Same result. Maybe someone have idea or encountered such problem? Thank in advance for your attention. -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D --envbJBWh7q8WU6mo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJUd56AAAoJEHiL4BJUt/ANAkoP/29AtxlK8hLKV6cT/xzoT4/N QOtDswkOromj51fq30ReEmukXm5pCjy/s2nycp8r5kX5ZAKKERwXLkRwiIZArGNu eu8ClNCnJrSf7X8pRohXnTvW5fN7bnlOwBCzrvypSMDIpn0IMSgBdOGmnUrZqCIg m2rDgd5VdZndr94JFILGqV6Eswh6OSYEofP4xeM6z6N8vFcZZH5JBehW9KKs3kSt 4dBffGqg9Xn9ThGSUc+pp6Z0mc3QanPFOqKIga9PkbSFZmywgJVsFLveJ67EGNhN IzMUrC8bMbjk8tJFsvpqWOZ5a29fepqNvxfMzXODN4goxI5v7LO+NJP9E5ULFStE q1a7pOVoYQeF3NtBAJ++Vqe3MJRSQntpwQsHgFi72elW52BM485D2zAl8S+h6xI8 0OrXybSBtUGy5SKHyfHUrf0VodoFx/Lwr4JV2+LNkNpVWqc5WrnVxqy5izNgk/sz DRM/XK7JQj1WdiY6xOPqyD4K4LdTXRFXkCHKecWy/7U1EJEqwCyKqpjbhCEc6xo8 5A/nbmf3y6eSJqBpU6iLAFCufXvdJYJDLIKwsCKILns1LwYezyzMn8goa4C+Ul82 b+5PvSpEZBortWi1ahvFxM7uXETXJflrqTdMxsu4M6IeXDLiCSdbfCLUg57O8HVS PYlyvHszpUjcl32T83Xf =B7Ub -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--