From: nobu.nokada@... Date: 2002-11-12T10:46:21+09:00 Subject: Re: ioctl to detect CTS Hi, At Sat, 9 Nov 2002 14:17:08 +0900, Brian wrote: > .... > ioctl(fd, TIOCMGET, &s); > if ((s & TIOCM_CTS) == TIOCM_CTS) { > .... > > I tried to reimplement this in ruby with stuff like > > f = File.open '/dev/modem' > p f.ioctl(0x5415) f.ioctl(0x5415, s = "") p s.unpack("i")[0] -- Nobu Nakada