From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nancy Newsgroups: gmane.emacs.help Subject: Re: Loadkeys trickery Date: Mon, 1 Dec 2014 17:18:30 +0800 Message-ID: References: <20141127215825.GA7558@self> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1417425539 5716 80.91.229.3 (1 Dec 2014 09:18:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 09:18:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dmitry Bogatov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 01 10:18:53 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 1XvN85-00061R-Dg for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2014 10:18:49 +0100 Original-Received: from localhost ([::1]:53370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvN85-000516-0U for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Dec 2014 04:18:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvN7r-000511-1u for help-gnu-emacs@gnu.org; Mon, 01 Dec 2014 04:18:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvN7q-0007AF-6B for help-gnu-emacs@gnu.org; Mon, 01 Dec 2014 04:18:34 -0500 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:54475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvN7o-00079a-FY; Mon, 01 Dec 2014 04:18:32 -0500 Original-Received: by mail-lb0-f176.google.com with SMTP id p9so8105126lbv.21 for ; Mon, 01 Dec 2014 01:18:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wuAykf43rBCw2MGMmByDFwyPmekVHbeyMs3Y67iBQoo=; b=QKxkR9jt0VD1P5cMIDuoM6iVUEn35U59a0pCYWQT/hAU274X+RUgE/oCV3OU+vhKop GpRzwoPO5D1XV6mhJsPc9ZsvfsIiK3Ppu+LXsAREI/irPyOIQ48jAnuVH/X4BkhiMg4K Mf8cdjlpV4zNczcNoSUn0pPMdTpV86xnxTEuw7BwK2aBlbLOSp4v54AUkw6dBc5xoYFE x1shxy0pUck2LjLJfYVv822Dy3SSNBZBETdDzbMhNSnTggEnuueusEprXYPjyxTE761m bk7oJ73KKYdQ6jPrkENqJwowsMjmbMPFAEJgsb9dhwnC0f2rOFgUiecRhZOAQmbkQr5I G+/g== X-Received: by 10.112.130.132 with SMTP id oe4mr55714361lbb.82.1417425511041; Mon, 01 Dec 2014 01:18:31 -0800 (PST) Original-Received: by 10.152.161.167 with HTTP; Mon, 1 Dec 2014 01:18:30 -0800 (PST) In-Reply-To: <20141127215825.GA7558@self> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 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:101344 Archived-At: Hi, Sorry, I can not help you, but need your help :) How you got that key code map correctly? Different term have different key code bind, how you known the number of each key exactly? Thanks :) On Fri, Nov 28, 2014 at 5:58 AM, Dmitry Bogatov wrote: > 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 -- Best Regards, Yu Rong Tan