Changeset 7e660378 in mainline


Ignore:
Timestamp:
2023-10-03T11:54:18Z (15 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d58bac
Parents:
b2261af0
git-author:
Jiri Svoboda <jiri@…> (2023-10-02 18:53:49)
git-committer:
Jiri Svoboda <jiri@…> (2023-10-03 11:54:18)
Message:

Support Alt-key in serial console

Location:
uspace/srv/hid/input
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/ctl/stty.c

    rb2261af0 r7e660378  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    228228        0,      KC_RIGHT,       0x1b, 0x5b, 0x43, GSP_END,
    229229
     230        /* Ctrl + key */
     231
    230232        KM_CTRL,        KC_Q,           0x11, GSP_END,
    231233        KM_CTRL,        KC_W,           0x17, GSP_END,
     
    253255        KM_CTRL,        KC_N,           0x0e, GSP_END,
    254256
     257        /* Alt + key */
     258
     259        KM_ALT, KC_BACKTICK,    0x1b, 0x60, GSP_END,
     260
     261        KM_ALT, KC_1,           0x1b, 0x31, GSP_END,
     262        KM_ALT, KC_2,           0x1b, 0x32, GSP_END,
     263        KM_ALT, KC_3,           0x1b, 0x33, GSP_END,
     264        KM_ALT, KC_4,           0x1b, 0x34, GSP_END,
     265        KM_ALT, KC_5,           0x1b, 0x35, GSP_END,
     266        KM_ALT, KC_6,           0x1b, 0x36, GSP_END,
     267        KM_ALT, KC_7,           0x1b, 0x37, GSP_END,
     268        KM_ALT, KC_8,           0x1b, 0x38, GSP_END,
     269        KM_ALT, KC_9,           0x1b, 0x39, GSP_END,
     270        KM_ALT, KC_0,           0x1b, 0x30, GSP_END,
     271
     272        KM_ALT, KC_MINUS,       0x1b, 0x2d, GSP_END,
     273        KM_ALT, KC_EQUALS,      0x1b, 0x3d, GSP_END,
     274
     275        KM_ALT, KC_Q,           0x1b, 0x71, GSP_END,
     276        KM_ALT, KC_W,           0x1b, 0x77, GSP_END,
     277        KM_ALT, KC_E,           0x1b, 0x65, GSP_END,
     278        KM_ALT, KC_R,           0x1b, 0x72, GSP_END,
     279        KM_ALT, KC_T,           0x1b, 0x74, GSP_END,
     280        KM_ALT, KC_Y,           0x1b, 0x79, GSP_END,
     281        KM_ALT, KC_U,           0x1b, 0x75, GSP_END,
     282        KM_ALT, KC_I,           0x1b, 0x69, GSP_END,
     283        KM_ALT, KC_O,           0x1b, 0x6f, GSP_END,
     284        KM_ALT, KC_P,           0x1b, 0x70, GSP_END,
     285
     286        /* 0x1b, 0x5b is used by other keys/sequences */
     287        KM_ALT, KC_RBRACKET,    0x1b, 0x5d, GSP_END,
     288
     289        KM_ALT, KC_A,           0x1b, 0x61, GSP_END,
     290        KM_ALT, KC_S,           0x1b, 0x73, GSP_END,
     291        KM_ALT, KC_D,           0x1b, 0x64, GSP_END,
     292        KM_ALT, KC_F,           0x1b, 0x66, GSP_END,
     293        KM_ALT, KC_G,           0x1b, 0x67, GSP_END,
     294        KM_ALT, KC_H,           0x1b, 0x68, GSP_END,
     295        KM_ALT, KC_J,           0x1b, 0x6a, GSP_END,
     296        KM_ALT, KC_K,           0x1b, 0x6b, GSP_END,
     297        KM_ALT, KC_L,           0x1b, 0x6c, GSP_END,
     298
     299        KM_ALT, KC_SEMICOLON,   0x1b, 0x3b, GSP_END,
     300        KM_ALT, KC_QUOTE,       0x1b, 0x27, GSP_END,
     301        KM_ALT, KC_BACKSLASH,   0x1b, 0x5c, GSP_END,
     302
     303        KM_ALT, KC_Z,           0x1b, 0x7a, GSP_END,
     304        KM_ALT, KC_X,           0x1b, 0x78, GSP_END,
     305        KM_ALT, KC_C,           0x1b, 0x63, GSP_END,
     306        KM_ALT, KC_V,           0x1b, 0x76, GSP_END,
     307        KM_ALT, KC_B,           0x1b, 0x62, GSP_END,
     308        KM_ALT, KC_N,           0x1b, 0x6e, GSP_END,
     309        KM_ALT, KC_M,           0x1b, 0x6d, GSP_END,
     310
     311        KM_ALT, KC_COMMA,       0x1b, 0x2c, GSP_END,
     312        KM_ALT, KC_PERIOD,      0x1b, 0x2e, GSP_END,
     313        KM_ALT, KC_SLASH,       0x1b, 0x2f, GSP_END,
     314
    255315        /*
    256316         * Sequences specific to Gnome terminal
  • uspace/srv/hid/input/stroke.c

    rb2261af0 r7e660378  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4747/** Correspondence between modifers and the modifier keycodes. */
    4848static unsigned int mods_keys[][2] = {
     49        { KM_LALT, KC_LALT },
    4950        { KM_LSHIFT, KC_LSHIFT },
    5051        { KM_LCTRL, KC_LCTRL },
Note: See TracChangeset for help on using the changeset viewer.