Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!newsfeed.internetmci.com!nntprelay.mathworks.com!news.mathworks.com!enews.sgi.com!newshub1.home.com!news.home.com!news1.best.com!nntp1.ba.best.com!not-for-mail From: dillon@flea.best.net (Matt Dillon) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Modem Date: 17 Jun 1997 16:15:54 -0700 Organization: Best Internet Communications, Inc. - 415 964 BEST Lines: 20 Message-ID: <5o75ra$s53$1@flea.best.net> References: <EBxuFA.A64@nonexistent.com> NNTP-Posting-Host: flea.best.net Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43055 :In article <EBxuFA.A64@nonexistent.com>, :Nathan Dorfman <nathan@senate.org> wrote: :>Are there any programs that have a modem-light display for X (for an :>internal modem)? If not, what kind of calls would I use to get the modem :>status, so I can write one? :>-- :>##################### For PGP key, telnet senate.org 5000 :># Nathan Dorfman # or finger nathan@senate.org :># Senate Industries # /'-- www.senate.org | ftp.senate.org -- `\ :>##################### \________________________________________/ man 4 tty The ioctl you want is probably TIOCMGET, though that will not give you the rx and tx status. I'm not sure what you can do about that, perhaps there is a kernel data structure you can hook onto to get per-tty byte counts. -Matt