unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* keybindings in console
@ 2006-08-24  8:34 Fisherss
  2006-08-26 20:29 ` John Sullivan
  0 siblings, 1 reply; 2+ messages in thread
From: Fisherss @ 2006-08-24  8:34 UTC (permalink / raw)


Hi all

I am currently moving all my works to console (not x-terminal), but I
found that I can not use the Emacs keybindings which need to hold
control, alt (meta) and shift at the same time, in other words, C-M-k
works fine but both C-M-S-k and C-M-K dont work (they all work
correctly in X), and the right ALT key also doesn't work.

I have searched the mailing list archieve, and found that it's because
of the console keymap configrations, but the problem is I don't
exactly know how to fix that in the key map file, all key definations
are like this:

----
shift   control keycode  53 = Delete
----

as you can see, they use only two modifiers, I don't know if three
ones cases will work, can I define it like this ? :

----
shift  alt  control keycode  53 = Delete
----

Could anyone give me some ideas or just send me your keymap configration files ?

Thank you.

-- 
Fisherss
fisherss@gmail.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: keybindings in console
  2006-08-24  8:34 keybindings in console Fisherss
@ 2006-08-26 20:29 ` John Sullivan
  0 siblings, 0 replies; 2+ messages in thread
From: John Sullivan @ 2006-08-26 20:29 UTC (permalink / raw)


Fisherss <fisherssml@gmail.com> writes:

> Hi all
>
> I am currently moving all my works to console (not x-terminal), but I
> found that I can not use the Emacs keybindings which need to hold
> control, alt (meta) and shift at the same time, in other words, C-M-k
> works fine but both C-M-S-k and C-M-K dont work (they all work
> correctly in X), and the right ALT key also doesn't work.
>

I don't really remember the details, but here is a diff of the changes I made.
my_keys.bak is the default keymap file on my Debian sid system (what it was a
year ago, anyway). my_keys is the file I use now.

Most of the changes I made were what was needed in order to get M-<punctuation>
bindings working, like M-< and M-!. But maybe the examples will still help.

--- /home/johnsu01/my_keys.bak	2005-08-23 19:26:18.000000000 -0400
+++ /home/johnsu01/my_keys	2005-08-23 22:24:31.000000000 -0400
@@ -1,34 +1,46 @@
-keymaps 0-2,4,6,8,12
+keymaps 0-2,4,6,8,9,12
 keycode   1 = Escape           Escape          
 	alt	keycode   1 = Meta_Escape     
 keycode   2 = one              exclam          
 	alt	keycode   2 = Meta_one        
+        shift   alt     keycode   2 = Meta_exclam
 keycode   3 = two              at               at               nul             
 	alt	keycode   3 = Meta_two        
+        shift   alt       keycode 3 = Meta_at
 keycode   4 = three            numbersign      
 	control	keycode   4 = Escape          
-	alt	keycode   4 = Meta_three      
+	alt	keycode   4 = Meta_three     
+        shift   alt     keycode   4 = Meta_numbersign 
 keycode   5 = four             dollar           dollar           Control_backslash
 	alt	keycode   5 = Meta_four       
+        shift   alt     keycode   5 = Meta_dollar
 keycode   6 = five             percent         
 	control	keycode   6 = Control_bracketright
 	alt	keycode   6 = Meta_five       
+        shift   alt     keycode   6 = Meta_percent
 keycode   7 = six              asciicircum     
 	control	keycode   7 = Control_asciicircum
 	alt	keycode   7 = Meta_six        
+        shift   alt     keycode   7 = Meta_asciicircum
 keycode   8 = seven            ampersand        braceleft        Control_underscore
 	alt	keycode   8 = Meta_seven      
+        shift   alt       keycode 8 = Meta_ampersand
 keycode   9 = eight            asterisk         bracketleft      Delete          
 	alt	keycode   9 = Meta_eight      
+        shift   alt     keycode   9 = Meta_asterisk
 keycode  10 = nine             parenleft        bracketright    
 	alt	keycode  10 = Meta_nine       
+        shift   alt     keycode  10 = Meta_parenleft
 keycode  11 = zero             parenright       braceright      
 	alt	keycode  11 = Meta_zero       
+        shift   alt     keycode  11 = Meta_parenright
 keycode  12 = bracketleft      braceleft       
 	control	keycode  12 = Escape          
 	alt	keycode  12 = Meta_bracketleft
+        shift   alt     keycode  12 = Meta_bracketleft
 keycode  13 = bracketright     braceright       asciitilde       Control_bracketright
 	alt	keycode  13 = Meta_bracketright
+        shift   alt     keycode  13 = Meta_bracketright
 keycode  14 = Delete           Delete          
 	alt	keycode  14 = Meta_Delete     
 keycode  15 = Tab              Tab             
@@ -36,10 +48,13 @@
 keycode  16 = apostrophe       quotedbl        
 	control	keycode  16 = Control_g       
 	alt	keycode  16 = Meta_apostrophe 
+        shift   alt     keycode  16 = Meta_quotedbl
 keycode  17 = comma            less            
 	alt	keycode  17 = Meta_comma      
+        shift   alt      keycode 17 = Meta_less
 keycode  18 = period           greater          currency        
 	alt	keycode  18 = Meta_period     
+        shift   alt      keycode 18 = Meta_greater
 keycode  19 = p               
 keycode  20 = y               
 keycode  21 = f               
@@ -50,8 +65,10 @@
 keycode  26 = slash            question        
 	control	keycode  26 = Delete          
 	alt	keycode  26 = Meta_slash      
+        shift   alt     keycode  26 = Meta_question
 keycode  27 = equal            plus            
-	alt	keycode  27 = Meta_equal      
+	alt	keycode  27 = Meta_equal
+        shift   alt      keycode 27 = Meta_plus      
 keycode  28 = Return          
 	alt	keycode  28 = Meta_Control_m  
 keycode  29 = Control         
@@ -67,15 +84,20 @@
 keycode  39 = s               
 keycode  40 = minus            underscore       backslash        Control_underscore
 	alt	keycode  40 = Meta_minus      
+        shift   alt      keycode 40 = Meta_underscore
 keycode  41 = grave            asciitilde      
 	control	keycode  41 = nul             
-	alt	keycode  41 = Meta_grave      
+	alt	keycode  41 = Meta_grave 
+        shift   alt      keycode 41 = Meta_asciitilde     
 keycode  42 = Shift           
 keycode  43 = backslash        bar             
 	control	keycode  43 = Control_backslash
 	alt	keycode  43 = Meta_backslash  
+        shift   alt     keycode  43 = Meta_bar
+        control alt     keycode  43 = Meta_Control_backslash  
 keycode  44 = semicolon        colon           
 	alt	keycode  44 = Meta_semicolon  
+        shift   alt     keycode  44 = Meta_colon
 keycode  45 = q               
 keycode  46 = j               
 keycode  47 = k               
@@ -92,7 +114,7 @@
 keycode  57 = space            space           
 	control	keycode  57 = nul             
 	alt	keycode  57 = Meta_space      
-keycode  58 = Caps_Lock       
+keycode  58 = Control
 keycode  59 = F1               F13              Console_13       F25             
 	alt	keycode  59 = Console_1       
 	control	alt	keycode  59 = Console_1       


-- 
-John Sullivan
-http://www.wjsullivan.net
-GPG Key: AE8600B6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-26 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24  8:34 keybindings in console Fisherss
2006-08-26 20:29 ` John Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).