ruby-termios provides Termios module to Ruby. Termios module is a simple wrapper for termios(3). It can be included into IO-family classes and can extend IO-family objects. In addition, the methods can use as module function.
tio = Termios.tcgetattr(dev) tio.cc[Termios::VMIN] = 1 Termios.tcsetattr(dev, Termios::TCSANOW, tio)The code does not work correctly with earlier version of ruby-termios.