Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stty: allow changing special settings #3859

Open
tertsdiepraam opened this issue Aug 20, 2022 · 0 comments
Open

stty: allow changing special settings #3859

tertsdiepraam opened this issue Aug 20, 2022 · 0 comments
Labels

Comments

@tertsdiepraam
Copy link
Member

tertsdiepraam commented Aug 20, 2022

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

@sylvestre sylvestre moved this to Todo in GNU Compatibility Aug 23, 2022
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 7, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 8, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 8, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 8, 2023
This also changes the default value to match GNU.

Part of uutils#3859.
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 8, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 8, 2023
This also changes the default value to match GNU.

Part of uutils#3859.
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 19, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 19, 2023
This also changes the default value to match GNU.

Part of uutils#3859.
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 19, 2023
dezgeg added a commit to dezgeg/coreutils that referenced this issue Jul 19, 2023
This also changes the default value to match GNU.

Part of uutils#3859.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant