{
    "content": [
        {
            "type": "text",
            "text": "# stty (info)\n\n## Sections\n\n- **File: coreutils.info,  Node: stty invocation,  Next: printenv invocation,  Prev: pwd invocation,  Up: Working context** (1 subsections)\n- **The descriptions themselves refer to the positive case, that is, when**\n- **File: coreutils.info,  Node: Control,  Next: Input,  Up: stty invocation**\n- **File: coreutils.info,  Node: Input,  Next: Output,  Prev: Control,  Up: stty invocation**\n- **File: coreutils.info,  Node: Output,  Next: Local,  Prev: Input,  Up: stty invocation**\n- **File: coreutils.info,  Node: Local,  Next: Combination,  Prev: Output,  Up: stty invocation**\n- **File: coreutils.info,  Node: Combination,  Next: Characters,  Prev: Local,  Up: stty invocation**\n- **File: coreutils.info,  Node: Characters,  Next: Special,  Prev: Combination,  Up: stty invocation**\n- **The special characters' default values vary from system to system.  They**\n- **File: coreutils.info,  Node: Special,  Prev: Characters,  Up: stty invocation**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "stty",
        "section": "",
        "mode": "info",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "File: coreutils.info,  Node: stty invocation,  Next: printenv invocation,  Prev: pwd invocation,  Up: Working context",
                "lines": 1,
                "subsections": [
                    {
                        "name": "19.2 'stty': Print or change terminal characteristics",
                        "lines": 41
                    }
                ]
            },
            {
                "name": "The descriptions themselves refer to the positive case, that is, when",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Control,  Next: Input,  Up: stty invocation",
                "lines": 40,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Input,  Next: Output,  Prev: Control,  Up: stty invocation",
                "lines": 56,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Output,  Next: Local,  Prev: Input,  Up: stty invocation",
                "lines": 59,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Local,  Next: Combination,  Prev: Output,  Up: stty invocation",
                "lines": 64,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Combination,  Next: Characters,  Prev: Local,  Up: stty invocation",
                "lines": 74,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Characters,  Next: Special,  Prev: Combination,  Up: stty invocation",
                "lines": 1,
                "subsections": []
            },
            {
                "name": "The special characters' default values vary from system to system.  They",
                "lines": 63,
                "subsections": []
            },
            {
                "name": "File: coreutils.info,  Node: Special,  Prev: Characters,  Up: stty invocation",
                "lines": 57,
                "subsections": []
            }
        ],
        "sections": {
            "File: coreutils.info,  Node: stty invocation,  Next: printenv invocation,  Prev: pwd invocation,  Up: Working context": {
                "content": "",
                "subsections": [
                    {
                        "name": "19.2 'stty': Print or change terminal characteristics",
                        "content": "'stty' prints or changes terminal characteristics, such as baud rate.\nSynopses:\n\nstty [OPTION] [SETTING]...\nstty [OPTION]\n\nIf given no line settings, 'stty' prints the baud rate, line\ndiscipline number (on systems that support it), and line settings that\nhave been changed from the values set by 'stty sane'.  By default, mode\nreading and setting are performed on the tty line connected to standard\ninput, although this can be modified by the '--file' option.\n\n'stty' accepts many non-option arguments that change aspects of the\nterminal line operation, as described below.\n\nThe program accepts the following options.  Also see *note Common\noptions::.\n\n'-a'\n'--all'\nPrint all current settings in human-readable form.  This option may\nnot be used in combination with any line settings.\n\n'-F DEVICE'\n'--file=DEVICE'\nSet the line opened by the file name specified in DEVICE instead of\nthe tty line connected to standard input.  This option is necessary\nbecause opening a POSIX tty requires use of the 'ONONDELAY' flag\nto prevent a POSIX tty from blocking until the carrier detect line\nis high if the 'clocal' flag is not set.  Hence, it is not always\npossible to allow the shell to open the device in the traditional\nmanner.\n\n'-g'\n'--save'\nPrint all current settings in a form that can be used as an\nargument to another 'stty' command to restore the current settings.\nThis option may not be used in combination with any line settings.\n\nMany settings can be turned off by preceding them with a '-'.  Such\narguments are marked below with \"May be negated\" in their description."
                    }
                ]
            },
            "The descriptions themselves refer to the positive case, that is, when": {
                "content": "not negated (unless stated otherwise, of course).\n\nSome settings are not available on all POSIX systems, since they use\nextensions.  Such arguments are marked below with \"Non-POSIX\" in their\ndescription.  On non-POSIX systems, those or other settings also may not\nbe available, but it's not feasible to document all the variations: just\ntry it and see.\n\n'stty' is installed only on platforms with the POSIX terminal\ninterface, so portable scripts should not rely on its existence on\nnon-POSIX platforms.\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n\n* Menu:\n\n* Control::                     Control settings\n* Input::                       Input settings\n* Output::                      Output settings\n* Local::                       Local settings\n* Combination::                 Combination settings\n* Characters::                  Special characters\n* Special::                     Special settings\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Control,  Next: Input,  Up: stty invocation": {
                "content": "Control settings:\n\n'parenb'\nGenerate parity bit in output and expect parity bit in input.  May\nbe negated.\n\n'parodd'\nSet odd parity (even if negated).  May be negated.\n\n'cmspar'\nUse \"stick\" (mark/space) parity.  If parodd is set, the parity bit\nis always 1; if parodd is not set, the parity bit is always zero.\nNon-POSIX.  May be negated.\n\n'cs5'\n'cs6'\n'cs7'\n'cs8'\nSet character size to 5, 6, 7, or 8 bits.\n\n'hup'\n'hupcl'\nSend a hangup signal when the last process closes the tty.  May be\nnegated.\n\n'cstopb'\nUse two stop bits per character (one if negated).  May be negated.\n\n'cread'\nAllow input to be received.  May be negated.\n\n'clocal'\nDisable modem control signals.  May be negated.\n\n'crtscts'\nEnable RTS/CTS flow control.  Non-POSIX.  May be negated.\n\n'cdtrdsr'\nEnable DTR/DSR flow control.  Non-POSIX.  May be negated.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Input,  Next: Output,  Prev: Control,  Up: stty invocation": {
                "content": "These settings control operations on data received from the terminal.\n\n'ignbrk'\nIgnore break characters.  May be negated.\n\n'brkint'\nMake breaks cause an interrupt signal.  May be negated.\n\n'ignpar'\nIgnore characters with parity errors.  May be negated.\n\n'parmrk'\nMark parity errors (with a 255-0-character sequence).  May be\nnegated.\n\n'inpck'\nEnable input parity checking.  May be negated.\n\n'istrip'\nClear high (8th) bit of input characters.  May be negated.\n\n'inlcr'\nTranslate newline to carriage return.  May be negated.\n\n'igncr'\nIgnore carriage return.  May be negated.\n\n'icrnl'\nTranslate carriage return to newline.  May be negated.\n\n'iutf8'\nAssume input characters are UTF-8 encoded.  May be negated.\n\n'ixon'\nEnable XON/XOFF flow control (that is, 'Ctrl-S'/'Ctrl-Q').  May be\nnegated.\n\n'ixoff'\n'tandem'\nEnable sending of 'stop' character when the system input buffer is\nalmost full, and 'start' character when it becomes almost empty\nagain.  May be negated.\n\n'iuclc'\nTranslate uppercase characters to lowercase.  Non-POSIX.  May be\nnegated.  Note ilcuc is not implemented, as one would not be able\nto issue almost any (lowercase) Unix command, after invoking it.\n\n'ixany'\nAllow any character to restart output (only the start character if\nnegated).  Non-POSIX.  May be negated.\n\n'imaxbel'\nEnable beeping and not flushing input buffer if a character arrives\nwhen the input buffer is full.  Non-POSIX.  May be negated.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Output,  Next: Local,  Prev: Input,  Up: stty invocation": {
                "content": "These settings control operations on data sent to the terminal.\n\n'opost'\nPostprocess output.  May be negated.\n\n'olcuc'\nTranslate lowercase characters to uppercase.  Non-POSIX.  May be\nnegated.  (Note ouclc is not currently implemented.)\n\n'ocrnl'\nTranslate carriage return to newline.  Non-POSIX.  May be negated.\n\n'onlcr'\nTranslate newline to carriage return-newline.  Non-POSIX.  May be\nnegated.\n\n'onocr'\nDo not print carriage returns in the first column.  Non-POSIX.  May\nbe negated.\n\n'onlret'\nNewline performs a carriage return.  Non-POSIX.  May be negated.\n\n'ofill'\nUse fill (padding) characters instead of timing for delays.\nNon-POSIX.  May be negated.\n\n'ofdel'\nUse ASCII DEL characters for fill instead of ASCII NUL characters.\nNon-POSIX.  May be negated.\n\n'nl1'\n'nl0'\nNewline delay style.  Non-POSIX.\n\n'cr3'\n'cr2'\n'cr1'\n'cr0'\nCarriage return delay style.  Non-POSIX.\n\n'tab3'\n'tab2'\n'tab1'\n'tab0'\nHorizontal tab delay style.  Non-POSIX.\n\n'bs1'\n'bs0'\nBackspace delay style.  Non-POSIX.\n\n'vt1'\n'vt0'\nVertical tab delay style.  Non-POSIX.\n\n'ff1'\n'ff0'\nForm feed delay style.  Non-POSIX.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Local,  Next: Combination,  Prev: Output,  Up: stty invocation": {
                "content": "'isig'\nEnable 'interrupt', 'quit', and 'suspend' special characters.  May\nbe negated.\n\n'icanon'\nEnable 'erase', 'kill', 'werase', and 'rprnt' special characters.\nMay be negated.\n\n'iexten'\nEnable non-POSIX special characters.  May be negated.\n\n'echo'\nEcho input characters.  May be negated.\n\n'echoe'\n'crterase'\nEcho 'erase' characters as backspace-space-backspace.  May be\nnegated.\n\n'echok'\nEcho a newline after a 'kill' character.  May be negated.\n\n'echonl'\nEcho newline even if not echoing other characters.  May be negated.\n\n'noflsh'\nDisable flushing after 'interrupt' and 'quit' special characters.\nMay be negated.\n\n'xcase'\nEnable input and output of uppercase characters by preceding their\nlowercase equivalents with '\\', when 'icanon' is set.  Non-POSIX.\nMay be negated.\n\n'tostop'\nStop background jobs that try to write to the terminal.  Non-POSIX.\nMay be negated.\n\n'echoprt'\n'prterase'\nEcho erased characters backward, between '\\' and '/'.  Non-POSIX.\nMay be negated.\n\n'echoctl'\n'ctlecho'\nEcho control characters in hat notation ('^C') instead of\nliterally.  Non-POSIX.  May be negated.\n\n'echoke'\n'crtkill'\nEcho the 'kill' special character by erasing each character on the\nline as indicated by the 'echoprt' and 'echoe' settings, instead of\nby the 'echoctl' and 'echok' settings.  Non-POSIX.  May be negated.\n\n'extproc'\nEnable 'LINEMODE', which is used to avoid echoing each character\nover high latency links.  See also Internet RFC 1116\n(https://tools.ietf.org/search/rfc1116).  Non-POSIX.  May be\nnegated.\n\n'flusho'\nDiscard output.  Note this setting is currently ignored on\nGNU/Linux systems.  Non-POSIX.  May be negated.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Combination,  Next: Characters,  Prev: Local,  Up: stty invocation": {
                "content": "Combination settings:\n\n'evenp'\n'parity'\nSame as 'parenb -parodd cs7'.  May be negated.  If negated, same as\n'-parenb cs8'.\n\n'oddp'\nSame as 'parenb parodd cs7'.  May be negated.  If negated, same as\n'-parenb cs8'.\n\n'nl'\nSame as '-icrnl -onlcr'.  May be negated.  If negated, same as\n'icrnl -inlcr -igncr onlcr -ocrnl -onlret'.\n\n'ek'\nReset the 'erase' and 'kill' special characters to their default\nvalues.\n\n'sane'\nSame as:\n\ncread -ignbrk brkint -inlcr -igncr icrnl\nicanon iexten echo echoe echok -echonl -noflsh\n-ixoff -iutf8 -iuclc -ixany imaxbel -xcase -olcuc -ocrnl\nopost -ofill onlcr -onocr -onlret nl0 cr0 tab0 bs0 vt0 ff0\nisig -tostop -ofdel -echoprt echoctl echoke -extproc\n\nand also sets all special characters to their default values.\n\n'cooked'\nSame as 'brkint ignpar istrip icrnl ixon opost isig icanon', plus\nsets the 'eof' and 'eol' characters to their default values if they\nare the same as the 'min' and 'time' characters.  May be negated.\nIf negated, same as 'raw'.\n\n'raw'\nSame as:\n\n-ignbrk -brkint -ignpar -parmrk -inpck -istrip\n-inlcr -igncr -icrnl -ixon -ixoff -icanon -opost\n-isig -iuclc -ixany -imaxbel -xcase min 1 time 0\n\nMay be negated.  If negated, same as 'cooked'.\n\n'cbreak'\nSame as '-icanon'.  May be negated.  If negated, same as 'icanon'.\n\n'pass8'\nSame as '-parenb -istrip cs8'.  May be negated.  If negated, same\nas 'parenb istrip cs7'.\n\n'litout'\nSame as '-parenb -istrip -opost cs8'.  May be negated.  If negated,\nsame as 'parenb istrip opost cs7'.\n\n'decctlq'\nSame as '-ixany'.  Non-POSIX.  May be negated.\n\n'tabs'\nSame as 'tab0'.  Non-POSIX.  May be negated.  If negated, same as\n'tab3'.\n\n'lcase'\n'LCASE'\nSame as 'xcase iuclc olcuc'.  Non-POSIX.  May be negated.  (Used\nfor terminals with uppercase characters only.)\n\n'crt'\nSame as 'echoe echoctl echoke'.\n\n'dec'\nSame as 'echoe echoctl echoke -ixany intr ^C erase ^? kill C-u'.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Characters,  Next: Special,  Prev: Combination,  Up: stty invocation": {
                "content": "",
                "subsections": []
            },
            "The special characters' default values vary from system to system.  They": {
                "content": "are set with the syntax 'name value', where the names are listed below\nand the value can be given either literally, in hat notation ('^C'), or\nas an integer which may start with '0x' to indicate hexadecimal, '0' to\nindicate octal, or any other digit to indicate decimal.\n\nFor GNU stty, giving a value of '^-' or 'undef' disables that special\ncharacter.  (This is incompatible with Ultrix 'stty', which uses a value\nof 'u' to disable a special character.  GNU 'stty' treats a value 'u'\nlike any other, namely to set that special character to <U>.)\n\n'intr'\nSend an interrupt signal.\n\n'quit'\nSend a quit signal.\n\n'erase'\nErase the last character typed.\n\n'kill'\nErase the current line.\n\n'eof'\nSend an end of file (terminate the input).\n\n'eol'\nEnd the line.\n\n'eol2'\nAlternate character to end the line.  Non-POSIX.\n\n'discard'\nAlternate character to toggle discarding of output.  Non-POSIX.\n\n'swtch'\nSwitch to a different shell layer.  Non-POSIX.\n\n'status'\nSend an info signal.  Not currently supported on GNU/Linux.\nNon-POSIX.\n\n'start'\nRestart the output after stopping it.\n\n'stop'\nStop the output.\n\n'susp'\nSend a terminal stop signal.\n\n'dsusp'\nSend a terminal stop signal after flushing the input.  Non-POSIX.\n\n'rprnt'\nRedraw the current line.  Non-POSIX.\n\n'werase'\nErase the last word typed.  Non-POSIX.\n\n'lnext'\nEnter the next character typed literally, even if it is a special\ncharacter.  Non-POSIX.\n",
                "subsections": []
            },
            "File: coreutils.info,  Node: Special,  Prev: Characters,  Up: stty invocation": {
                "content": "'min N'\nSet the minimum number of characters that will satisfy a read until\nthe time value has expired, when '-icanon' is set.\n\n'time N'\nSet the number of tenths of a second before reads time out if the\nminimum number of characters have not been read, when '-icanon' is\nset.\n\n'ispeed N'\nSet the input speed to N.\n\n'ospeed N'\nSet the output speed to N.\n\n'rows N'\nTell the tty kernel driver that the terminal has N rows.\nNon-POSIX.\n\n'cols N'\n'columns N'\nTell the kernel that the terminal has N columns.  Non-POSIX.\n\n'drain'\nApply settings after first waiting for pending output to be\ntransmitted.  This is enabled by default for GNU 'stty'.  Note this\nis treated as an option rather than a line setting, and will follow\nthe option processing rules described in the summary above.  It is\nuseful to disable this option in cases where the system may be in a\nstate where serial transmission is not possible.  For example, if\nthe system has received the 'DC3' character with 'ixon' (software\nflow control) enabled, then 'stty' would block without '-drain'\nbeing specified.  May be negated.  Non-POSIX.\n\n'size'\nPrint the number of rows and columns that the kernel thinks the\nterminal has.  (Systems that don't support rows and columns in the\nkernel typically use the environment variables 'LINES' and\n'COLUMNS' instead; however, GNU 'stty' does not know anything about\nthem.)  Non-POSIX.\n\n'line N'\nUse line discipline N.  Non-POSIX.\n\n'speed'\nPrint the terminal speed.\n\n'N'\nSet the input and output speeds to N.  N can be one of: 0 50 75 110\n134 134.5 150 200 300 600 1200 1800 2400 4800 9600 19200 38400\n'exta' 'extb'.  'exta' is the same as 19200; 'extb' is the same as\n38400.  Many systems, including GNU/Linux, support higher speeds.\nThe 'stty' command includes support for speeds of 57600, 115200,\n230400, 460800, 500000, 576000, 921600, 1000000, 1152000, 1500000,\n2000000, 2500000, 3000000, 3500000, or 4000000 where the system\nsupports these.  0 hangs up the line if '-clocal' is set.\n",
                "subsections": []
            }
        }
    }
}