{
    "content": [
        {
            "type": "text",
            "text": "# stty(1) (man)\n\n**Summary:** stty - change and print terminal line settings\n\n**Synopsis:** stty [-F DEVICE | --file=DEVICE] [SETTING]...\nstty [-F DEVICE | --file=DEVICE] [-a|--all]\nstty [-F DEVICE | --file=DEVICE] [-g|--save]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -a | --all | — | print all current settings in human-readable form |\n| -g | --save | — | print all current settings in a stty-readable form |\n| -F | --file | — | open and use the specified DEVICE instead of stdin --help display this help and exit |\n| — | --version | — | output version information and exit Optional - before SETTING indicates negation. An * marks non-POSIX settings. The und |\n| — | — | — | same as icanon cooked same as brkint ignpar istrip icrnl ixon opost isig icanon, eof and eol characters to their default |\n| — | — | — | same as raw crt same as echoe echoctl echoke dec same as echoe echoctl echoke -ixany intr ^c erase 0177 kill ^u * [-]dec |\n| — | — | — | * [-]lcase same as xcase iuclc olcuc litout same as -parenb -istrip -opost cs8 |\n| — | — | — | same as parenb istrip opost cs7 nl same as -icrnl -onlcr |\n| — | — | — | oddp same as parenb parodd cs7 |\n| — | — | — | [-]parity same as [-]evenp pass8 same as -parenb -istrip cs8 |\n| — | — | — | raw same as -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -icanon -opost -isig -iuclc |\n| — | — | — | sane same as cread -ignbrk brkint -inlcr -igncr icrnl icanon iexten echo echoe echok -echonl -noflsh -ixoff -iutf8 -iucl |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (4 lines) — 19 subsections\n  - -a --all (2 lines)\n  - -g --save (2 lines)\n  - -F --file (4 lines)\n  - --version (5 lines)\n  - Special characters: (45 lines)\n  - Special settings: (31 lines)\n  - Control settings: (28 lines)\n  - Input settings: (48 lines)\n  - Output settings: (41 lines)\n  - Local settings: (60 lines)\n  - Combination settings: (5 lines)\n  - -cbreak (5 lines)\n  - -cooked (13 lines)\n  - -evenp -parenb (5 lines)\n  - -litout (4 lines)\n  - -nl -inlcr -igncr -ocrnl -onlret (2 lines)\n  - -oddp -parenb (5 lines)\n  - -pass8 (3 lines)\n  - -raw (9 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nstty - change and print terminal line settings\n\n### SYNOPSIS\n\nstty [-F DEVICE | --file=DEVICE] [SETTING]...\nstty [-F DEVICE | --file=DEVICE] [-a|--all]\nstty [-F DEVICE | --file=DEVICE] [-g|--save]\n\n### DESCRIPTION\n\nPrint or change terminal characteristics.\n\nMandatory arguments to long options are mandatory for short options too.\n\n#### -a --all\n\nprint all current settings in human-readable form\n\n#### -g --save\n\nprint all current settings in a stty-readable form\n\n#### -F --file\n\nopen and use the specified DEVICE instead of stdin\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\nOptional - before SETTING indicates negation.  An * marks non-POSIX settings.  The underlying\nsystem defines which settings are available.\n\n#### Special characters:\n\n* discard CHAR\nCHAR will toggle discarding of output\n\neof CHAR\nCHAR will send an end of file (terminate the input)\n\neol CHAR\nCHAR will end the line\n\n* eol2 CHAR\nalternate CHAR for ending the line\n\nerase CHAR\nCHAR will erase the last character typed\n\nintr CHAR\nCHAR will send an interrupt signal\n\nkill CHAR\nCHAR will erase the current line\n\n* lnext CHAR\nCHAR will enter the next character quoted\n\nquit CHAR\nCHAR will send a quit signal\n\n* rprnt CHAR\nCHAR will redraw the current line\n\nstart CHAR\nCHAR will restart the output after stopping it\n\nstop CHAR\nCHAR will stop the output\n\nsusp CHAR\nCHAR will send a terminal stop signal\n\n* swtch CHAR\nCHAR will switch to a different shell layer\n\n* werase CHAR\nCHAR will erase the last word typed\n\n#### Special settings:\n\nN      set the input and output speeds to N bauds\n\n* cols N\ntell the kernel that the terminal has N columns\n\n* columns N\nsame as cols N\n\n* [-]drain\nwait for transmission before applying settings (on by default)\n\nispeed N\nset the input speed to N\n\n* line N\nuse line discipline N\n\nmin N  with -icanon, set N characters minimum for a completed read\n\nospeed N\nset the output speed to N\n\n* rows N\ntell the kernel that the terminal has N rows\n\n* size print the number of rows and columns according to the kernel\n\nspeed  print the terminal speed\n\ntime N with -icanon, set read timeout of N tenths of a second\n\n#### Control settings:\n\n[-]clocal\ndisable modem control signals\n\n[-]cread\nallow input to be received\n\n* [-]crtscts\nenable RTS/CTS handshaking\n\ncsN    set character size to N bits, N in [5..8]\n\n[-]cstopb\nuse two stop bits per character (one with '-')\n\n[-]hup send a hangup signal when the last process closes the tty\n\n[-]hupcl\nsame as [-]hup\n\n[-]parenb\ngenerate parity bit in output and expect parity bit in input\n\n[-]parodd\nset odd parity (or even parity with '-')\n\n* [-]cmspar\nuse \"stick\" (mark/space) parity\n\n#### Input settings:\n\n[-]brkint\nbreaks cause an interrupt signal\n\n[-]icrnl\ntranslate carriage return to newline\n\n[-]ignbrk\nignore break characters\n\n[-]igncr\nignore carriage return\n\n[-]ignpar\nignore characters with parity errors\n\n* [-]imaxbel\nbeep and do not flush a full input buffer on a character\n\n[-]inlcr\ntranslate newline to carriage return\n\n[-]inpck\nenable input parity checking\n\n[-]istrip\nclear high (8th) bit of input characters\n\n* [-]iutf8\nassume input characters are UTF-8 encoded\n\n* [-]iuclc\ntranslate uppercase characters to lowercase\n\n* [-]ixany\nlet any character restart output, not only start character\n\n[-]ixoff\nenable sending of start/stop characters\n\n[-]ixon\nenable XON/XOFF flow control\n\n[-]parmrk\nmark parity errors (with a 255-0-character sequence)\n\n[-]tandem\nsame as [-]ixoff\n\n#### Output settings:\n\n* bsN  backspace delay style, N in [0..1]\n\n* crN  carriage return delay style, N in [0..3]\n\n* ffN  form feed delay style, N in [0..1]\n\n* nlN  newline delay style, N in [0..1]\n\n* [-]ocrnl\ntranslate carriage return to newline\n\n* [-]ofdel\nuse delete characters for fill instead of NUL characters\n\n* [-]ofill\nuse fill (padding) characters instead of timing for delays\n\n* [-]olcuc\ntranslate lowercase characters to uppercase\n\n* [-]onlcr\ntranslate newline to carriage return-newline\n\n* [-]onlret\nnewline performs a carriage return\n\n* [-]onocr\ndo not print carriage returns in the first column\n\n[-]opost\npostprocess output\n\n* tabN horizontal tab delay style, N in [0..3]\n\n* tabs same as tab0\n\n* -tabs\nsame as tab3\n\n* vtN  vertical tab delay style, N in [0..1]\n\n#### Local settings:\n\n[-]crterase\necho erase characters as backspace-space-backspace\n\n* crtkill\nkill all line by obeying the echoprt and echoe settings\n\n* -crtkill\nkill all line by obeying the echoctl and echok settings\n\n* [-]ctlecho\necho control characters in hat notation ('^c')\n\n[-]echo\necho input characters\n\n* [-]echoctl\nsame as [-]ctlecho\n\n[-]echoe\nsame as [-]crterase\n\n[-]echok\necho a newline after a kill character\n\n* [-]echoke\nsame as [-]crtkill\n\n[-]echonl\necho newline even if not echoing other characters\n\n* [-]echoprt\necho erased characters backward, between '\\' and '/'\n\n* [-]extproc\nenable \"LINEMODE\"; useful with high latency links\n\n* [-]flusho\ndiscard output\n\n[-]icanon\nenable special characters: erase, kill, werase, rprnt\n\n[-]iexten\nenable non-POSIX special characters\n\n[-]isig\nenable interrupt, quit, and suspend special characters\n\n[-]noflsh\ndisable flushing after interrupt and quit special characters\n\n* [-]prterase\nsame as [-]echoprt\n\n* [-]tostop\nstop background jobs that try to write to the terminal\n\n* [-]xcase\nwith icanon, escape with '\\' for uppercase characters\n\n#### Combination settings:\n\n* [-]LCASE\nsame as [-]lcase\n\ncbreak same as -icanon\n\n#### -cbreak\n\nsame as icanon\n\ncooked same as brkint ignpar istrip icrnl ixon opost isig icanon, eof and eol  characters  to\ntheir default values\n\n#### -cooked\n\nsame as raw\n\ncrt    same as echoe echoctl echoke\n\ndec    same as echoe echoctl echoke -ixany intr ^c erase 0177 kill ^u\n\n* [-]decctlq\nsame as [-]ixany\n\nek     erase and kill characters to their default values\n\nevenp  same as parenb -parodd cs7\n\n#### -evenp -parenb\n\n* [-]lcase\nsame as xcase iuclc olcuc\n\nlitout same as -parenb -istrip -opost cs8\n\n#### -litout\n\nsame as parenb istrip opost cs7\n\nnl     same as -icrnl -onlcr\n\n#### -nl -inlcr -igncr -ocrnl -onlret\n\noddp   same as parenb parodd cs7\n\n#### -oddp -parenb\n\n[-]parity\nsame as [-]evenp\n\npass8  same as -parenb -istrip cs8\n\n#### -pass8\n\nraw    same  as  -ignbrk  -brkint  -ignpar  -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon\n-ixoff -icanon -opost -isig -iuclc -ixany -imaxbel -xcase min 1 time 0\n\n#### -raw\n\nsane   same as cread -ignbrk brkint -inlcr  -igncr  icrnl  icanon  iexten  echo  echoe  echok\n-echonl  -noflsh -ixoff -iutf8 -iuclc -ixany imaxbel -xcase -olcuc -ocrnl opost -ofill\nonlcr -onocr -onlret nl0 cr0 tab0 bs0 vt0 ff0 isig  -tostop  -ofdel  -echoprt  echoctl\nechoke -extproc -flusho, all special characters to their default values\n\nHandle  the  tty line connected to standard input.  Without arguments, prints baud rate, line\ndiscipline, and deviations from stty sane.  In settings, CHAR is taken literally, or coded as\nin ^c, 0x37, 0177 or 127; special values ^- or undef used to disable special characters.\n\n### AUTHOR\n\nWritten by David MacKenzie.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n\n### SEE ALSO\n\nFull documentation <https://www.gnu.org/software/coreutils/stty>\nor available locally via: info '(coreutils) stty invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                     STTY(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "stty",
        "section": "1",
        "mode": "man",
        "summary": "stty - change and print terminal line settings",
        "synopsis": "stty [-F DEVICE | --file=DEVICE] [SETTING]...\nstty [-F DEVICE | --file=DEVICE] [-a|--all]\nstty [-F DEVICE | --file=DEVICE] [-g|--save]",
        "flags": [
            {
                "flag": "-a",
                "long": "--all",
                "arg": null,
                "description": "print all current settings in human-readable form"
            },
            {
                "flag": "-g",
                "long": "--save",
                "arg": null,
                "description": "print all current settings in a stty-readable form"
            },
            {
                "flag": "-F",
                "long": "--file",
                "arg": null,
                "description": "open and use the specified DEVICE instead of stdin --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit Optional - before SETTING indicates negation. An * marks non-POSIX settings. The underlying system defines which settings are available."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "same as icanon cooked same as brkint ignpar istrip icrnl ixon opost isig icanon, eof and eol characters to their default values"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "same as raw crt same as echoe echoctl echoke dec same as echoe echoctl echoke -ixany intr ^c erase 0177 kill ^u * [-]decctlq same as [-]ixany ek erase and kill characters to their default values evenp same as parenb -parodd cs7"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "* [-]lcase same as xcase iuclc olcuc litout same as -parenb -istrip -opost cs8"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "same as parenb istrip opost cs7 nl same as -icrnl -onlcr"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "oddp same as parenb parodd cs7"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "[-]parity same as [-]evenp pass8 same as -parenb -istrip cs8"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "raw same as -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -icanon -opost -isig -iuclc -ixany -imaxbel -xcase min 1 time 0"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "sane same as cread -ignbrk brkint -inlcr -igncr icrnl icanon iexten echo echoe echok -echonl -noflsh -ixoff -iutf8 -iuclc -ixany imaxbel -xcase -olcuc -ocrnl opost -ofill onlcr -onocr -onlret nl0 cr0 tab0 bs0 vt0 ff0 isig -tostop -ofdel -echoprt echoctl echoke -extproc -flusho, all special characters to their default values Handle the tty line connected to standard input. Without arguments, prints baud rate, line discipline, and deviations from stty sane. In settings, CHAR is taken literally, or coded as in ^c, 0x37, 0177 or 127; special values ^- or undef used to disable special characters."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-a --all",
                        "lines": 2,
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "-g --save",
                        "lines": 2,
                        "flag": "-g",
                        "long": "--save"
                    },
                    {
                        "name": "-F --file",
                        "lines": 4,
                        "flag": "-F",
                        "long": "--file"
                    },
                    {
                        "name": "--version",
                        "lines": 5,
                        "long": "--version"
                    },
                    {
                        "name": "Special characters:",
                        "lines": 45
                    },
                    {
                        "name": "Special settings:",
                        "lines": 31
                    },
                    {
                        "name": "Control settings:",
                        "lines": 28
                    },
                    {
                        "name": "Input settings:",
                        "lines": 48
                    },
                    {
                        "name": "Output settings:",
                        "lines": 41
                    },
                    {
                        "name": "Local settings:",
                        "lines": 60
                    },
                    {
                        "name": "Combination settings:",
                        "lines": 5
                    },
                    {
                        "name": "-cbreak",
                        "lines": 5
                    },
                    {
                        "name": "-cooked",
                        "lines": 13
                    },
                    {
                        "name": "-evenp -parenb",
                        "lines": 5
                    },
                    {
                        "name": "-litout",
                        "lines": 4
                    },
                    {
                        "name": "-nl -inlcr -igncr -ocrnl -onlret",
                        "lines": 2
                    },
                    {
                        "name": "-oddp -parenb",
                        "lines": 5
                    },
                    {
                        "name": "-pass8",
                        "lines": 3
                    },
                    {
                        "name": "-raw",
                        "lines": 9
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}