Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gtty(II) — UNIX 6th Edition 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stty (II)

GTTY(II)  −  PWB/UNIX 8/5/73

NAME

gtty  −  get typewriter status

SYNOPSIS

(gtty = 32.) 
(file descriptor in r0)
sys gtty; arg
arg: .=.+6 gtty(fildes, arg)
int arg[3];

DESCRIPTION

Gtty stores in the three words addressed by arg the status of the typewriter whose file descriptor is given in r0 (resp. given as the first argument).  The format is the same as that passed by stty. 

SEE ALSO

stty (II)

DIAGNOSTICS

Error bit (c-bit) is set if the file descriptor does not refer to a typewriter.  From C, a −1 value is returned for an error, 0, for a successful call. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026