8000 `stty`: allow changing special settings · Issue #3859 · uutils/coreutils · GitHub
[go: up one dir, main page]

Skip to content
stty: allow changing special settings #3859
Open
@tertsdiepraam

Description

@tertsdiepraam

stty currently can read a couple of "special settings" (like cols, rows, speed), but cannot currently change them. The following arguments should change these settings:

Special settings:
   N             set the input and output speeds to N bauds
 * cols N        tell the kernel that the terminal has N columns
 * columns N     same as cols N
 * [-]drain      wait for transmission before applying settings (on by default)
   ispeed N      set the input speed to N
 * line N        use line discipline N
   min N         with -icanon, set N characters minimum for a completed read
   ospeed N      set the output speed to N
 * rows N        tell the kernel that the terminal has N rows
 * size          print the number of rows and columns according to the kernel
   speed         print the terminal speed
   time N        with -icanon, set read timeout of N tenths of a second

Feel free to tackle this issue in parts.

Code can be found at: https://github.com/uutils/coreutils/tree/main/src/uu/stty

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0