You are on page 1of 7

Hi everybody, It is really great how a small program done by so few good people can beat some other big

programs done by big companies. However, I am not able to write anything via rdesktop, because I am sitting at an Xterminal with the attached xmodmap. As I read in the source, the key mapping is not able to reflect this. Could anybody write me, how to incorporate changes? I don't want to write one big array, neither one big switch. Also, I don't want to make changes which break the program for other people. Thanx, Dscho -Sent through GMX FreeMail - http://www.gmx.net keycode 0 = keycode 1 = keycode 2 = keycode 3 = keycode 4 = keycode 5 = keycode 6 = keycode 7 = keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 10 = keycode 11 = keycode 12 = Clear keycode 13 = Return keycode 14 = keycode 15 = keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode 20 = Caps_Lock keycode 21 = keycode 22 = keycode 23 = keycode 24 = keycode 25 = keycode 26 = keycode 27 = Escape Escape keycode 28 = keycode 29 = keycode 30 = keycode 31 = keycode 32 = space space keycode 33 = Prior keycode 34 = Next

keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = End Home Left Up Right Down Select Print Execute Insert Delete Help 0 equal braceright 1 exclam onesuperior 2 quotedbl twosuperior 3 section threesuperior 4 dollar 5 percent 6 ampersand 7 slash braceleft 8 parenleft bracketleft 9 parenright bracketright a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E EuroSign F G H I J K L M mu N O P Q at R S T U V W X Y Z .

keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = KP_0 KP_0 KP_1 KP_1 KP_2 KP_2 KP_3 KP_3 KP_4 KP_4 KP_5 KP_5 KP_6 KP_6 KP_7 KP_7 KP_8 KP_8 KP_9 KP_9 KP_Multiply KP_Multiply KP_Add KP_Add KP_Separator KP_Separator KP_Subtract KP_Subtract KP_Decimal KP_Decimal KP_Divide KP_Divide F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 Num_Lock Scroll_Lock .

keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = acute grave comma semicolon minus underscore period colon numbersign apostrophe .

keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode keycode 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = plusminus hyphen macron copyright registered guillemotleft guillemotright masculine ordfeminine ae AE cent yen questiondown exclamdown onequarter onehalf threequarters less greater bar plus asterisk asciitilde multiply division acircumflex Acircumflex ecircumflex Ecircumflex icircumflex Icircumflex ocircumflex Ocircumflex ucircumflex Ucircumflex ntilde Ntilde yacute Yacute oslash Ooblique aring Aring ccedilla Ccedilla thorn THORN eth ETH diaeresis cedilla currency agrave Agrave atilde Atilde egrave Egrave igrave Igrave ograve Ograve otilde Otilde ugrave Ugrave adiaeresis Adiaeresis ediaeresis Ediaeresis idiaeresis Idiaeresis odiaeresis Odiaeresis udiaeresis Udiaeresis ssharp question backslash asciicircum degree 3 sterling Mode_switch .

. case ConsoleKey.ReadKey(true). while (!exit) { // read keystroke without printing echo to console window.Subtract: Console.Multiply: Console. break.Decimal: Console. break.WriteLine("Multiply Key").WriteLine("Add Key").Enter.WriteLine("Decimal Key").Key) { case ConsoleKey. case ConsoleKey. case ConsoleKey.Add: Console.WriteLine("Subtract Key"). switch (info. break. ConsoleKeyInfo info = Console.VK_NUMPAD0 VK_NUMPAD1 VK_NUMPAD2 VK_NUMPAD3 VK_NUMPAD4 VK_NUMPAD5 VK_NUMPAD6 VK_NUMPAD7 VK_NUMPAD8 VK_NUMPAD9 60 61 62 63 64 65 66 67 68 69 VK_SEPARATOR6C VK_SUBTRACT 6D VK_DECIMAL 6E VK_DIVIDE 6F Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Numeric keypad key Separator key Subtract key Decimal key Divide key 0 1 2 3 4 5 6 7 8 9 Numpad Numpad Numpad Numpad Numpad Plus: 107 (Hexadecimal 6B) Minus: 109 (Hexadecimal 6D) Asterisk: 106 (Hexadecimal 6A) Slash: 111 (Hexadecimal 6F) Dot (Delete): 110 (Hexadecimal 6E) class KeyStrokeTester { public void ReportKeys() { ConsoleKey exitCode = ConsoleKey. bool exit = false.

WriteLine("Divide Key"). static void Main(string[] args) { new KeyStrokeTester().ReportKeys().WriteLine("Wrong key pressed. case ConsoleKey.. default: Console.break.."). } Mark the best replies as answers. break. case ConsoleKey.. break.Enter: exit = true." • • Reply Quote . } } } } Test it in a Console app like this.Divide: Console. break. "Fooling computers since 1971.