Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
UnixTerminals


NAME

UnixTerminals - UNIX implementation of terminals

SYNOPSIS

PROCEDURE OpenByName(VAR s: Streams.Stream; devicename, tiname: ARRAY OF CHAR;
		  errors: RelatedEvents.Object): BOOLEAN;


PROCEDURE Open(VAR s: Streams.Stream; instream, outstream: Streams.Stream; tiname: ARRAY OF CHAR; errors: RelatedEvents.Object): BOOLEAN;

DESCRIPTION

UnixTerminals provides an implementation for terminals under UNIX based on the terminfo database.

OpenByName opens the terminal given by devicename. The device must not be opened already. tiname is the name of the associated terminfo file. Both names must be 0X-terminated strings. In case of an empty terminfo name the name given by the environment variable TERM is used. The name of the device must not be an empty string.

UnixTerminals connects Terminals.console to the controlling terminal of the process, i.e. the terminal the user logged in.

Before exiting the program all opened terminals must be closed explicitely by the user. As an alternative Process.Terminate can be called.

BUGS

Because of the architecture of UNIX, the events defined by Terminals are only available for the controlling terminal.

SEE ALSO

RelatedEvents
relate events to objects
StreamConditions
wait until a stream becomes ready for input and output
Streams
abstraction for byte oriented and output
Terminals
abstraction for terminals
TermAttributes
support of display attributes on ASCII terminals
TermInfos
interface to the UNIX terminfo database
TermKeys
support of function keys on ASCII terminals
TermLineGraphics
support of line graphics on ASCII terminals

AUTHOR

Ralf Beck
Edited by: rbeck, last change: 1996/01/02, revision: 1.3, converted to HTML: 1997/04/28

Oberon || Library || Module Index || Search Engine || Definition || Module