Close Menu
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • How to
      • Q&A
    • OS
      • Windows
      • Arch Linux
    • AI
    • Gaming
      • Easter Eggs
    • Statistics
    • Blog
      • Featured
    • MORE
      • IP Address
      • Man Pages
    • Write For Us
    • Contact
    Command Linux
    Home - man page - KBD_MODE

    KBD_MODE

    WillieBy WillieApril 27, 2026Updated:April 27, 2026No Comments2 Mins Read
     

    NAME

    kbd_mode – report or set the keyboard mode  

    SYNOPSIS

    kbd_mode [ -a | -u | -k | -s ] [ -C CONSOLE ]  

    DESCRIPTION

    Without argument, kbd_mode prints the current keyboard mode (RAW, MEDIUMRAW or XLATE). With argument, it sets the keyboard mode as indicated:

    -s: scancode mode (RAW),

    -k: keycode mode (MEDIUMRAW),

    -a: ASCII mode (XLATE),

    -u: UTF-8 mode (UNICODE).

    Of course the "-a" is only traditional, and the code used can be any 8-bit character set. With "-u" a 16-bit character set is expected, and these chars are transmitted to the kernel as 1, 2, or 3 bytes (following the UTF-8 coding). In these latter two modes the key mapping defined by loadkeys(1) is used.

    kbd_mode operates on the console specified by the "-C" option; if there is none, the console associated with stdin is used.

    Warning: changing the keyboard mode, other than between ASCII and Unicode, will probably make your keyboard unusable. This command is only meant for use (say via remote login) when some program left your keyboard in the wrong state. Note that in some obsolete versions of this program the "-u" option was a synonym for "-s".  

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    XMAG

    April 30, 2026

    GIT-SUBTREE

    April 30, 2026

    XARGS

    April 30, 2026

    EPOLL_WAIT

    April 30, 2026
    Top Posts

    How To Fix ‘apt-get command not found’ Error on Linux

    January 27, 2026

    OPENPTY

    February 11, 2026

    STRCASECMP

    February 24, 2026

    How to Install Redis CLI on Linux

    January 22, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.