Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ typeof(VII) — UNIX 1BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ttytype (V)

TYPEOF(VII)  −  PWB/UNIX 11/13/77

NAME

typeof − get the typeof of a terminal from the ttytype data base

SYNOPSIS

typeof(tty)
char tty; char *
stypeof(tty)
char tty;

DESCRIPTION

These routines extract the terminal type from the ttytype data base given a single character terminal character such as returned from ttyn (III).  The only difference between the two routines is that typeof returns two characters packed into an integer, while stypeof returns a pointer to a string; the string is in a static place so it must be saved if stypeof is to be called again. 

FILES

/etc/ttytypedata base

SEE ALSO

ttytype (V)

AUTHOR

William Joy

BUGS

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