Lines Matching refs:keyboard
112 #define IsBackarrowToggle(keyboard, keysym, state) \
113 ((((keyboard->flags & MODE_DECBKM) == 0) \
265 * control modifier applied to some of the keyboard digits gives results for
285 * but they do work with modifyOtherKeys=2 for the US keyboard:
305 * If we are in the non-VT220/VT52 keyboard state, allow modifiers to add a
315 #define LegacyAllows(code) (!is_legacy || (code & xw->keyboard.modify_now.allow_keys) != 0)
323 TKeyboard *keyboard = &(xw->keyboard);
324 int is_legacy = (keyboard->type == keyboardIsLegacy);
328 if (keyboard->type == keyboardIsVT220)
346 if (xw->keyboard.modify_now.other_keys != 0) {
500 if (xw->keyboard.modify_now.other_keys <= 1) {
504 if (xw->keyboard.modify_now.other_keys == 0) {
549 TKeyboard *keyboard = &(xw->keyboard);
564 if (IsBackarrowToggle(keyboard, kd->keysym, state)) {
572 switch (keyboard->modify_now.other_keys) {
646 keyboard->modify_now.other_keys,
659 * the Sun/PC keyboard layout. See the modifyOtherKeys resource in the manpage
709 * If we have told xterm that our keyboard is really a Sun/PC keyboard, this is
783 * legacy keyboard support is enabled, or if xterm emulates a VT220.
786 * setting, popup menu or escape sequence, it overrides the keyboard type
794 if (xw->keyboard.type == keyboardIsDefault
795 || xw->keyboard.type == keyboardIsVT220)
798 if (xw->keyboard.type == keyboardIsLegacy)
802 xw->keyboard.type,
816 TKeyboard *keyboard = &(xw->keyboard);
863 && (keyboard->modify_now.other_keys > 1)
890 TKeyboard *keyboard = &(xw->keyboard);
898 int keypad_mode = ((keyboard->flags & MODE_DECKPAM) != 0);
903 /* Ignore characters typed at the keyboard */
904 if (keyboard->flags & MODE_KAM)
936 if (keyboard->type == keyboardIsVT220
959 * The keyboard tables may give us different keypad codes according to
992 if (keyboard->modify_now.other_keys > 1) {
1013 && IsBackarrowToggle(keyboard, kd.keysym, evt_state)) {
1019 if (keyboard->type == keyboardIsVT220
1052 * the keyboard provides. We can do this if there is no conflicting use of
1055 * a) for VT220 keyboard, we use only the control-modifier. The keyboard
1067 /* VT220 keyboard uses shift for UDK */
1068 if (keyboard->type == keyboardIsVT220
1069 || keyboard->type == keyboardIsLegacy) {
1080 else if (keyboard->modify_now.function_keys < 0) {
1105 * Test for one of the keyboard variants.
1107 switch (keyboard->type) {
1138 ? keyboard->modify_now.function_keys
1139 : keyboard->modify_now.cursor_keys),
1155 && keyboard->type == keyboardIsVT220
1165 else if (keyboard->type != keyboardIsLegacy
1171 keyboard->modify_now.function_keys,
1184 if (keyboard->modify_now.other_keys > 1
1186 modifyOtherKey(&reply, '\t', modify_parm, keyboard->format_keys);
1195 keyboard
1226 if (keyboard->flags & MODE_DECCKM) {
1231 modifyCursorKey(&reply, keyboard->modify_now.cursor_keys, &modify_parm);
1250 if ((keyboard->modify_now.other_keys > 0)
1273 if (modifyOtherKey(&reply, input_char, modify_parm, keyboard->format_keys)) {
1917 &(xw->keyboard.shell_translations),
1921 &(xw->keyboard.xterm_translations),
1930 size_t have = (xw->keyboard.extra_translations
1931 ? strlen(xw->keyboard.extra_translations)
1939 xw->keyboard.extra_translations
1940 = TypeRealloc(char, need, xw->keyboard.extra_translations);
1941 if ((xw->keyboard.extra_translations) != NULL) {
1944 strcat(xw->keyboard.extra_translations, " \\n\\");
1945 sprintf(xw->keyboard.extra_translations, "%s: %s",
1947 TRACE(("...{%s}\n", xw->keyboard.extra_translations));
1962 * send that information as a parameter for special keys in Sun/PC keyboard
1993 * Assume that if we can find the paste keysym in the X keyboard
2001 TRACE(("keyboard has XF86XK_Paste\n"));
2009 TRACE(("keyboard has SunXK_Paste\n"));
2051 FreeAndNull(xw->keyboard.shell_translations);
2052 FreeAndNull(xw->keyboard.xterm_translations);