[comp.unix.questions] stty question

march@m.cs.uiuc.edu (04/06/89)

How exactly does stty function?  Does it modify some kind of tty filter by
sending ctrl characters?  I have found some very strange scripts which
use stty in a way I thought not possible.  I don't have source or I would
have already found the answer.

				Thank you,
				Steve March


======================================================
Steve March                     URH 720 Oglesby
march@uiucmath.math.uiuc.edu    1001 West College Ct
march@symcom.math.uiuc.edu      Urbana, IL  61801
sam20285@uxa.cso.uiuc.edu       (H) (217) 332-5251
march@mrcNeXT.cso.uiuc.edu      (W) (217) 334-7408
march@cs.uiuc.edu
 --{uunet,convex,pur-ee}!uiucdcs!march
"Vote appathetic!! (on second thought, don't bother)"
======================================================

gwyn@smoke.BRL.MIL (Doug Gwyn ) (04/07/89)

In article <9000015@m.cs.uiuc.edu> march@m.cs.uiuc.edu writes:
>How exactly does stty function?  Does it modify some kind of tty filter by
>sending ctrl characters?

No, it performs a terminal-handler ioctl() system call, not a write().

Where in the manual the details of these particular ioctl()s are
described varies from one version of UNIX to another; usually it's
in the "device" section of the PRM.