coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

`stty`: allow changing special settings

Open tertsdiepraam opened this issue 3 years ago • 0 comments

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

tertsdiepraam avatar Aug 20 '22 22:08 tertsdiepraam