[buug] `stty 0`
Ian Zimmerman
itz at speakeasy.org
Thu Aug 1 13:40:31 PDT 2002
Bob> From man stty: 0 Hang up line immediately.
Right, I guess with any numeric argument it just calls cfsetospeed(3).
man termios says
>> cfsetospeed() sets the output baud rate stored in the
>> termios structure pointed to by termios_p to speed, which
>> must be one of these constants:
>> B0
[...]
>> B115200
>> The zero baud rate, B0, is used to terminate the connection.
>> If B0 is specified, the modem control lines shall no longer
>> be asserted. Normally, this will disconnect the line.
and my man stty mentions
>> Special settings:
>> N set the input and output speeds to N bauds
but not 0 explicitly. I think I will have to try it to see if it really
works :)
--
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
More information about the buug
mailing list