plamo8.2x->keyboard

配列変更後のキー配置

PS/2キーボードを変換器でUSBでPCに繋いでいます。

タブキー・後退キー等の他に、PageUP, PageDown, Delete周りまでも変更してます。 なので、アルファベット以外はキートップの刻印通りに機能するキーが半分くらいはあるかも。

breakF1F2F3F4 F5F6F7F8 F9F10F11F12

ESC12345 67890- ^\]
英字qwert yuiop: [Enter
capasdfg hjkl;BS End
shiftzxcvb nm,./` shift
ctrlalttab無変換 変換spacealtctrl

定義ファイル

ウチで使っている定義ファイルです。汚いところもありますが、 まんま掲載します。HTML化するときに注釈等をつけていませんので、同じ機体で あればそのまま使えるはずです。

コンソール用

僕が自作マシンで使っている定義ファイルです。 oasys互換ということで、参考にしているのはFM-TOWNSの親指シフトキーボードです。 と、云いつつもコンソールでは日本語変換をしないことにしたので、後退とか、タブの配置がポイント。 (jp106-oasys.map / '19-01-16)


keymaps 0-1,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              quotedbl        
keycode   4 = three            numbersign       Escape          
	alt	keycode   4 = Meta_three      
	shift	alt	keycode   4 = Meta_numbersign 
keycode   5 = four             dollar           Control_backslash
	alt	keycode   5 = Meta_four       
	shift	alt	keycode   5 = Meta_dollar     
keycode   6 = five             percent          Control_bracketright
	alt	keycode   6 = Meta_five       
	shift	alt	keycode   6 = Meta_percent    
keycode   7 = six              ampersand        Control_underscore
keycode   8 = seven            apostrophe      
keycode   9 = eight            parenleft       
keycode  10 = nine             parenright      
keycode  11 = zero             at             
	alt	keycode  11 = Meta_zero       
	shift   alt     keycode  11 = Meta_at
keycode  12 = minus            equal           
	alt	keycode  12 = Meta_minus      
	shift	alt	keycode  12 = Meta_equal      
keycode  13 = asciicircum      asciitilde       Control_asciicircum
	alt	keycode  13 = Meta_asciicircum
keycode  14 = bracketright     braceright       Control_bracketright
	alt	keycode  14 = Meta_bracketright
	shift	alt	keycode  14 = Meta_braceright 
#keycode  15 = Tab              Tab             
#	alt	keycode  15 = Meta_Tab        
keycode  15 =
keycode  16 = q               
keycode  17 = w               
keycode  18 = e               
keycode  19 = r               
keycode  20 = t               
keycode  21 = y               
keycode  22 = u               
keycode  23 = i               
keycode  24 = o               
keycode  25 = p               
keycode  26 = colon            asterisk        
	alt	keycode  26 = Meta_colon      
keycode  27 = bracketleft      braceleft        Escape          
	alt	keycode  27 = Meta_bracketleft
	shift	alt	keycode  27 = Meta_braceleft  
keycode  28 = Return          
	alt	keycode  28 = Meta_Control_m  
keycode  29 = Control         
keycode  30 = a               
keycode  31 = s               
keycode  32 = d               
keycode  33 = f               
keycode  34 = g               
keycode  35 = h               
keycode  36 = j               
keycode  37 = k               
keycode  38 = l               
keycode  39 = semicolon        plus            
	alt	keycode  39 = Meta_semicolon  
keycode  40 = BackSpace         BackSpace
	alt	keycode  40 = Meta_Delete     
keycode  41 = Escape           Escape          
keycode  42 = Shift           
keycode  43 = Escape           Escape          
keycode  44 = z               
keycode  45 = x               
keycode  46 = c               
keycode  47 = v               
keycode  48 = b               
keycode  49 = n               
keycode  50 = m               
keycode  51 = comma            less            
	alt	keycode  51 = Meta_comma      
	shift	alt	keycode  51 = Meta_less       
keycode  52 = period           greater          Compose         
	alt	keycode  52 = Meta_period     
	shift	alt	keycode  52 = Meta_greater    
keycode  53 = slash      question      Control_underscore Delete          
	alt	keycode  53 = Meta_slash      
keycode  54 = Shift
keycode  55 = KP_Multiply     
keycode  56 = Alt             
keycode  57 = space            space            nul             
	alt	keycode  57 = Meta_space      
	alt	keycode  57 = Meta_space      
keycode  58 = nul	Caps_Lock       
keycode  59 = F1               F13              F25              F37
	alt	keycode  59 = Console_1       
	control	alt	keycode  59 = Console_1       
keycode  60 = F2               F14              F26              F38    
	alt	keycode  60 = Console_2       
	control	alt	keycode  60 = Console_2       
keycode  61 = F3               F15              F27              F39      
	alt	keycode  61 = Console_3       
	control	alt	keycode  61 = Console_3       
keycode  62 = F4               F16              F28              F40       
	alt	keycode  62 = Console_4       
	control	alt	keycode  62 = Console_4       
keycode  63 = F5               F17              F29              F41        
	alt	keycode  63 = Console_5       
	control	alt	keycode  63 = Console_5       
keycode  64 = F6               F18              F30              F42       
	alt	keycode  64 = Console_6       
	control	alt	keycode  64 = Console_6       
keycode  65 = F7               F19              F31              F43     
	alt	keycode  65 = Console_7       
	control	alt	keycode  65 = Console_7       
keycode  66 = F8               F20              F32              F44     
	alt	keycode  66 = Console_8       
	control	alt	keycode  66 = Console_8       
keycode  67 = F9               F21              F33              F45 
	alt	keycode  67 = Console_9       
	control	alt	keycode  67 = Console_9       
keycode  68 = F10              F22              F34              F46
	alt	keycode  68 = Console_10      
	control	alt	keycode  68 = Console_10      
keycode  69 = Num_Lock        
keycode  70 = Scroll_Lock      Show_Memory      Show_State      
	alt	keycode  70 = Scroll_Lock     
keycode  71 = KP_7            
	alt	keycode  71 = Ascii_7         
keycode  72 = KP_8            
	alt	keycode  72 = Ascii_8         
keycode  73 = KP_9            
	alt	keycode  73 = Ascii_9         
keycode  74 = KP_Subtract     
keycode  75 = KP_4            
	alt	keycode  75 = Ascii_4         
keycode  76 = KP_5            
	alt	keycode  76 = Ascii_5         
keycode  77 = KP_6            
	alt	keycode  77 = Ascii_6         
keycode  78 = KP_Add          
keycode  79 = KP_1            
	alt	keycode  79 = Ascii_1         
keycode  80 = KP_2            
	alt	keycode  80 = Ascii_2         
keycode  81 = KP_3            
	alt	keycode  81 = Ascii_3         
keycode  82 = KP_0            
	alt	keycode  82 = Ascii_0         
keycode  83 = KP_Period       
	altgr	control	keycode  83 = Boot            
	control	alt	keycode  83 = Boot            
keycode  84 = Last_Console    
keycode  85 =
keycode  86 = less             greater          bar             
	alt	keycode  86 = Meta_less       
keycode  87 = F11              F23              F35              F47        
	alt	keycode  87 = Console_11      
	control	alt	keycode  87 = Console_11      
keycode  88 = F12              F24              F36              F48    
	alt	keycode  88 = Console_12      
	control	alt	keycode  88 = Console_12      
keycode  89 = grave   underscore    Control_backslash Control_underscore
	alt	keycode  89 = Meta_backslash  
	shift	alt	keycode  89 = Meta_underscore 
keycode  90 = 
keycode  91 = space
keycode  92 = space           
keycode  93 = space
keycode  94 = Tab              Tab             
	alt	keycode  94 = Meta_Tab        
keycode  95 =
keycode  96 = KP_Enter        
keycode  97 = Control         
keycode  98 = KP_Divide       
keycode  99 = Control_backslash
keycode 100 = at             at
	alt	keycode  100 = Meta_at       
	shift   alt     keycode  100 = Meta_at
keycode 101 = Break           
keycode 102 = Find            
keycode 103 = Up              
keycode 104 = Prior           
	shift	keycode 104 = Scroll_Backward 
keycode 105 = Left            
	alt	keycode 105 = Decr_Console    
keycode 106 = Right           
	alt	keycode 106 = Incr_Console    
keycode 107 = Select          
keycode 108 = Down            
keycode 109 = Next            
	shift	keycode 109 = Scroll_Forward  
keycode 110 = Insert          
keycode 111 = Remove          
	altgr	control	keycode 111 = Boot            
	control	alt	keycode 111 = Boot            
keycode 112 = Macro           
keycode 113 = F13             
keycode 114 = F14             
keycode 115 = Help            
keycode 116 = Do              
keycode 117 = F17             
keycode 118 = KP_MinPlus      
keycode 119 = Pause           
keycode 120 =
keycode 121 =
keycode 122 =
keycode 123 =
keycode 124 = backslash        bar              Control_backslash
	alt	keycode 124 = Meta_backslash  
	shift	alt	keycode 124 = Meta_bar        
keycode 125 =
keycode 126 =
keycode 127 =

X window system用

[~/.Xmodmap]

!
! .xinit で呼び出すキー定義 (USB)
!

! キーボード左の特殊キー[半][Tab]...[shift][ctrl]
keycode 49=Escape
keycode 23=Eisu_toggle
keycode 66=Pointer_Button1
!keycode 50=
!keycode 37=

! キーボード下段の特殊キー[Alt][Muhenkan][space][Henkan][hirakana][Alt]
!keycode 64=Alt_L
keycode 102=Tab
keycode 65=Muhenkan
keycode 100=Henkan_Mode
keycode 101=space
!keycode 108=Alt_R

! キーボード右の特殊キー[Enter][shift][ctrl]
!keycode 36=
!keycode 62=
!keycode 105=

! キーボード上段の数字キー
! [1]...[0]
keycode 10=1 exclam
keycode 11=2 quotedbl
keycode 12=3 numbersign
keycode 13=4 dollar
keycode 14=5 percent
keycode 15=6 ampersand
keycode 16=7 apostrophe
keycode 17=8 parenleft
keycode 18=9 parenright
keycode 19=0 at

! キーボード右よりの記号キーの入れ換え
! [-][^][\][BS]
keycode 20=minus equal
keycode 21=asciicircum asciitilde
keycode 132=backslash bar
keycode 22=bracketright braceright

! [p][@][[]
!keycode 33=
keycode 34=colon asterisk
keycode 35=bracketleft braceleft

! [;][:][]]
keycode 47=semicolon plus
keycode 48=BackSpace
keycode 51=Escape

! [,][.][/][\]
!keycode 59=
!keycode 60=
!keycode 61=
keycode 97=grave underscore

! [PrnScn][ScrLock][Pause]/[Ins][Home][PgUp]/[Del][End][PgDn]
!keycode 107=
!keycode 78=
!keycode 127=
keycode 118=Page_Up
keycode 110=Home
keycode 112=Page_Down
keycode 119=Zenkaku_Hankaku
keycode 115=Delete
keycode 117=Insert

! [Up]/[Left][Down][Right]
!keycode 111=
!keycode 113=
!keycode 116=
!keycode 114=

! テンキー
! [NumLock][/][*][-][+][Enter]
!keycode 77=
!keycode 112=
!keycode 63=
!keycode 82=
!keycode 86=
!keycode 108=

! [0]...[9][.]

! ファンクションキー列
! [Esc][F1]...[F10][F11][F12]
keycode 9=Pointer_Drag1 Pointer_EnableKeys
!keycode 67=
!...
!keycode 76=
!keycode 95=
!keycode 96=



tsushiro.s, 2003-2023.