Forrest logo
tool overview
On this page you find all important commands for the CLI tool stty. If the command you are looking for is missing please ask our AI.

stty

stty is a command line tool used in Unix-like operating systems to manipulate terminal settings. The name stty stands for "set terminal" and it allows users to change terminal behavior. It is available on various platforms including Linux, macOS, and FreeBSD.

The stty tool can be used to set a wide range of terminal settings such as controlling input and output behavior, controlling echo, handling special characters, and defining terminal line speed.

Some of the most commonly used options with stty include -a which displays all the current terminal settings, -echo which turns off terminal echo, and -icanon which enables canonical input processing.

With stty, users can modify and customize terminal settings to suit their needs. For example, they can configure the terminal to automatically recognize special characters or adjust the backspace behavior.

stty can also be used to manipulate terminal settings in shell scripts and can be very useful for automating terminal interactions and controlling input/output behavior programmatically.

The stty command comes with a wide range of options and flags, giving users fine-grained control over the terminal settings.

It is important to use caution with stty as incorrect usage may result in unintended consequences, such as rendering the terminal unusable or causing errors in applications that rely on specific terminal configurations.

Users can refer to the stty manual or online documentation for a complete list of options and detailed usage instructions.

Overall, stty is a powerful command line tool that allows users to control and modify various terminal settings to enhance their command line experience.

List of commands for stty:

  • stty:tldr:071fa stty: Reset all modes to reasonable values for the current terminal.
    $ stty sane
    try on your machine
    explain this command
  • stty:tldr:65436 stty: Set the number of rows or columns.
    $ stty ${select} ${count}
    try on your machine
    explain this command
  • stty:tldr:f05fc stty: Display all settings for the current terminal.
    $ stty --all
    try on your machine
    explain this command
  • stty:tldr:f8376 stty: Get the actual transfer speed of a device.
    $ stty --file ${path-to-device_file} speed
    try on your machine
    explain this command
tool overview