! Remap function and "grey" keys to SVR4 type sequences.
! (More specifically UnixWare but I think it's SVR4 in general)
!
! This mapping is for kbd-0.88/Kernel 1.1.56 and later.
!
! You do, of course, use "loadkeys" to load this...


! Backspace is backspace, delete is delete.
keycode  14 = BackSpace        BackSpace          
	control keycode  14 = Delete
	alt     keycode  14 = BackSpace
	control alt     keycode 14 = Delete

keycode 111 = Delete           Delete
	control keycode  111 = Delete
	alt     keycode  111 = Delete     
	altgr   control keycode 111 = Boot            
	control alt     keycode 111 = Boot            


! Numeric keypad.
! The function keys on the keypad should be the unshifted keys when
! num lock is off but we can't do that so we use the shifted keys.
keycode  69 = Num_Lock
keycode  98 = KP_Divide
keycode  55 = KP_Multiply
keycode  96 = KP_Enter
keycode  71 = KP_7            F49
	alt     keycode  71 = Ascii_7         
keycode  72 = KP_8            F50
	alt     keycode  72 = Ascii_8         
keycode  73 = KP_9            F51
	alt     keycode  73 = Ascii_9         
keycode  74 = KP_Subtract     F52
keycode  75 = KP_4            F53
	alt     keycode  75 = Ascii_4         
keycode  76 = KP_5            F54
	alt     keycode  76 = Ascii_5         
keycode  77 = KP_6            F55
	alt     keycode  77 = Ascii_6         
keycode  78 = KP_Add          F56
keycode  79 = KP_1            F57
	alt     keycode  79 = Ascii_1         
keycode  80 = KP_2            F58
	alt     keycode  80 = Ascii_2         
keycode  81 = KP_3            F59
	alt     keycode  81 = Ascii_3         
keycode  82 = KP_0            F60
	alt     keycode  82 = Ascii_0         
keycode  83 = KP_Period       
	altgr   control keycode  83 = Boot            
	control alt     keycode  83 = Boot            


! Function keys.
keycode  59 = F1               F13
	control keycode  59 = F1              
	control shift keycode 59 = F13
	alt     keycode  59 = Console_1       
	control	alt     keycode  59 = Console_1       
keycode  60 = F2               F14
	control keycode  60 = F2             
	control shift keycode 60 = F14
	alt     keycode  60 = Console_2       
	control	alt     keycode  60 = Console_2       
keycode  61 = F3               F15
	control keycode  61 = F3             
	control shift keycode 61 = F15
	alt     keycode  61 = Console_3       
	control	alt     keycode  61 = Console_3       
keycode  62 = F4               F16
	control keycode  62 = F4             
	control shift keycode 62 = F16
	alt     keycode  62 = Console_4       
	control	alt     keycode  62 = Console_4       
keycode  63 = F5               F17
	control keycode  63 = F5             
	control shift keycode 63 = F17
	alt     keycode  63 = Console_5       
	control	alt     keycode  63 = Console_5       
keycode  64 = F6               F18
	control keycode  64 = F6             
	control shift keycode 64 = F18
	alt     keycode  64 = Console_6       
	control	alt     keycode  64 = Console_6       
keycode  65 = F7               F19
	control keycode  65 = F7             
	control shift keycode 65 = F19
	alt     keycode  65 = Console_7       
	control	alt     keycode  65 = Console_7       
keycode  66 = F8               F20
	control keycode  66 = F8             
	control shift keycode 66 = F20
	alt     keycode  66 = Console_8       
	control	alt     keycode  66 = Console_8       
keycode  67 = F9               F21
	control keycode  67 = F9             
	control shift keycode 67 = F21
	alt     keycode  67 = Console_9       
	control	alt     keycode  67 = Console_9       
keycode  68 = F10              F22
	control keycode  68 = F10             
	control shift keycode 68 = F22
	alt     keycode  68 = Console_10      
	control	alt     keycode  68 = Console_10      
keycode  87 = F11              F23
	control keycode  87 = F11             
	control shift keycode 69 = F23
	alt     keycode  87 = Console_11      
	control	alt     keycode  87 = Console_11      
keycode  88 = F12              F24
	control keycode  88 = F12             
	control shift keycode 70 = F24
	alt     keycode  88 = Console_12      
	control	alt     keycode  88 = Console_12      

string F1 = "\033OP"
string F2 = "\033OQ"
string F3 = "\033OR"
string F4 = "\033OS"
string F5 = "\033OT"
string F6 = "\033OU"
string F7 = "\033OV"
string F8 = "\033OW"
string F9 = "\033OX"
string F10 = "\033OY"
string F11 = "\033OZ"
string F12 = "\033OA"

string F13 = "\033Op"
string F14 = "\033Oq"
string F15 = "\033Or"
string F16 = "\033Os"
string F17 = "\033Ot"
string F18 = "\033Ou"
string F19 = "\033Ov"
string F20 = "\033Ow"
string F21 = "\033Ox"
string F22 = "\033Oy"
string F23 = "\033Oz"
string F24 = "\033Oa"

string Home = "\033[H"
string Insert = "\033[L"
string Remove = "\033[3~"
string End = "\033[F"
string PageUp = "\033[I"
string PageDown = "\033[G"
