get terminal speed from shell script

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Mon Aug 20 00:11:44 AEST 1990


And here's yet another thread that pty gives an easy answer to:

sun at me.utoronto.ca (Andy Sun Anu-guest) writes:
> Is there a way to get the terminal speed from a (sh or csh) script?
  [ speed=`stty speed` doesn't work with newer stty versions ]

speed=`pty stty speed`. 'Nuff said.

---Dan



More information about the Comp.unix.questions mailing list