{
    "mode": "man",
    "parameter": "kbd_mode",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/kbd_mode/1/json",
    "generated": "2026-10-10T12:48:30Z",
    "synopsis": "kbdmode [ -a | -u | -k | -s ] [ -f ] [ -C CONSOLE ]",
    "sections": {
        "NAME": {
            "content": "kbdmode - report or set the keyboard mode\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "kbdmode [ -a | -u | -k | -s ] [ -f ] [ -C CONSOLE ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Without  argument, kbdmode prints the current keyboard mode (RAW, MEDIUMRAW or XLATE).  With\nargument, it sets the keyboard mode as indicated:\n\n-s: scancode mode (RAW),\n\n-k: keycode mode (MEDIUMRAW),\n\n-a: ASCII mode (XLATE),\n\n-u: UTF-8 mode (UNICODE).\n\nOf course the \"-a\" is only traditional, and the code used can be  any  8-bit  character  set.\nWith  \"-u\"  a 16-bit character set is expected, and these chars are transmitted to the kernel\nas 1, 2, or 3 bytes (following the UTF-8 coding).  In these latter two modes the key  mapping\ndefined by loadkeys(1) is used.\n\nkbdmode  operates on the console specified by the \"-C\" option; if there is none, the console\nassociated with stdin is used.\n\nWarning: changing the keyboard mode, other than between ASCII and Unicode, will probably make\nyour keyboard unusable. Set the \"-f\" option to force such  changes.   This  command  is  only\nmeant for use (say via remote login) when some program left your keyboard in the wrong state.\nNote  that  in  some obsolete versions of this program the \"-u\" option was a synonym for \"-s\"\nand older versions of this program may not recognize the \"-f\" option.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "loadkeys(1)\n\n\nkbd                                          6 Apr 1994                                  KBDMODE(1)",
            "subsections": []
        }
    },
    "summary": "kbdmode - report or set the keyboard mode",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "loadkeys",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/loadkeys/1/json"
        }
    ]
}