get terminal speed from shell script

Paul Lew lew at gsg.UUCP
Thu Aug 16 10:43:03 AEST 1990


bob at wyse.wyse.com (Bob McGowen x4312 dept208) writes:

>In article <90Aug12.135618edt.18763 at me.utoronto.ca> sun at hammer.me.UUCP (Andy Sun Anu-guest) writes:
>  >Is there a way to get the terminal speed from a (sh or csh) script?

>Of course, this is the Bourne shell, not csh.  I cannot vouch for how or if
>this is possible with csh.

Try:	set speed = `(stty speed > /dev/tty) |& cat`

Layers of I/O redirections usually can solve these kind of problems.
-- 
Paul Lew (lew at gsg.gsg.com)		UUCP:		oliveb---+
						uunet---samsung--+
General Systems Group, 5 Manor Parkway			harvard--+--gsg--lew
Salem, NH 03079	(603) 893-1000				decvax---+



More information about the Comp.unix.questions mailing list