From: ts Date: 2002-03-19T15:55:44+09:00 Subject: Re: Has anyone used the ruby-termios library package? >>>>> "D" == Dennis Newbold writes: D> to work something like the UNIX termios style interfaces for controlling, D> reading, and writing the serial ports. Thanks for any help or advice D> you can provide. Well, I don't use it but it give you access to the termios call. It define the module function Termios::getattr(IO io) Termios::setattr(IO io, Fixnum opt, Struct::Termios param) Termios::sendbreak(IO io, Fixnum duration) Termios::drain(IO io) Termios::flow(IO io, Fixnum action) action can have the value Termios::TCOOFF, Termios::TCOON, Termios::TCIOFF or Termios::TCION Termios::flush(IO io, Fixnum queue_selector) queue_select can have the value Termios::TCIFLUSH, Termios::TCOFLUSH or Termios::TCIOFLUSH Termios::getpgrp(IO io) Termios::setpgrp(IO io, Fixnum process_group) Termios::new_termios(c_iflag, c_oflag, c_cflag, c_lflag, c_cc, c_ispeed, c_ospeed) return a Struct::Termios with c_iflag # input modes c_oflag # output modes c_cflag # control modes c_lflag # local modes c_cc # control chars c_ispeed # input speed c_ospeed # output speed See `man termios' for more information. You have in the directory test some examples. Guy Decoux