1

I'm on linux using bash with GNOME Terminal. I used the command stty -ixon and then I checked if ctrl-s was sending XOFF and ctrl-q was sending XON : they weren't. The problem is that by using stty -ixoff I can't re-enable the functions that these key combinations had.

3
  • I noticed that the reset command does that but it obviously also clears the screen, this is not exactely what I wanted.
    – sanslol
    Commented Jan 3, 2019 at 19:08
  • 1
    Not only is unix.stackexchange.com/questions/367081 a related question, it is almost certainly the same answer.
    – JdeBP
    Commented Jan 3, 2019 at 19:51
  • 2
    @JdeBP I misunderstood the meaning of -ixon I thought it was an option and that -ixoff was the option that did the opposite, but now I know that by doing stty -ixon I disable XON and by doing stty ixon I enable it.
    – sanslol
    Commented Jan 3, 2019 at 20:55

1 Answer 1

1

In order to set or clear the configuration flags you should use the following syntax:

stty -F /dev/yourdevice

Use - next to the name of the flag to clear it and remove - to set the flag On again. For example:

  • stty -F /dev/stty0 -parodd to enable the even parity flag and
  • stty -F /dev/stty0 parodd for odd parity.

Now replace the parodd flag of the example above for the flag you need to configure. You can check this here

You can use the stty -F /dev/ttyS0 sane to reset some of the default values, Remember that the device will reset the default values after a system reboot.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .