From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: C- key bindings not working on console Date: Mon, 27 Jan 2014 08:59:44 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1390813215 5767 80.91.229.3 (27 Jan 2014 09:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 09:00:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 10:00:23 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 1W7i3K-0003Wz-EC for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 10:00:22 +0100 Original-Received: from localhost ([::1]:58451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7i3J-00080w-KR for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 04:00:21 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 75 Original-NNTP-Posting-Host: F0FEFcLSZEaVVHfj1cocJw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.9.8-1-ARCH (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:203416 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:95685 Archived-At: You can edit us.kmap.gz (or whatever country keymap you are using). Below is what I have in mine: Then rename the file to personal.kmap.gz and load it with loadkeys personal.kmap.gz Then in .emacs write: (define-key function-key-map "\eO5A" '[C-up]) (define-key function-key-map "\eO5B" '[C-down]) (define-key function-key-map "\eO5C" '[C-right]) (define-key function-key-map "\eO5D" '[C-left]) (define-key function-key-map "\eO3A" '[M-up]) (define-key function-key-map "\eO3B" '[M-down]) (define-key function-key-map "\eO3C" '[M-right]) (define-key function-key-map "\eO3D" '[M-left]) (define-key function-key-map "\eO2A" '[S-up]) (define-key function-key-map "\eO2B" '[S-down]) (define-key function-key-map "\eO2C" '[S-right]) (define-key function-key-map "\eO2D" '[S-left]) You can see the characters a key compination produces with cat > /dev/null ^[O5D ^[O5C ^[O5A^[O5B and Control-D to finish. If you see nothing, then you need to change the keymap. C-0, C-1 give nothing in Linux console. It is a bit painful, but at the end it works. --------------------------------------------------- keycode 103 = Up Alt keycode 103 = F49 Shift keycode 103 = F53 Control keycode 103 = F57 keycode 108 = Down Alt keycode 108 = F50 Shift keycode 108 = F54 Control keycode 108 = F58 keycode 106 = Right alt keycode 106 = Incr_Console Shift keycode 106 = F55 Control keycode 106 = F59 keycode 105 = Left alt keycode 105 = Decr_Console Shift keycode 105 = F56 Control keycode 105 = F60 string F49 = "\033O3A" string F50 = "\033O3B" string F53 = "\033O2A" string F54 = "\033O2B" string F55 = "\033O2C" string F56 = "\033O2D" string F57 = "\033O5A" string F58 = "\033O5B" string F59 = "\033O5C" string F60 = "\033O5D" string F80 = "\033O2E"