2 (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 See the copyright notice in the ACK home directory, in the file "Copyright".
7 Module: Interface to termcap database
8 From: Unix manual chapter 3
9 Version: $Id: XXTermcap.def,v 1.2 1994/06/24 12:50:32 ceriel Exp $
14 DEFINITION MODULE XXTermcap;
15 (* See the Unix termcap manual to see what this does.
16 Interfaces directly to C routines. Not pretty.
17 Use Termcap.def instead for a nicer interface.
20 FROM SYSTEM IMPORT ADDRESS;
22 TYPE PUTPROC = PROCEDURE(CHAR);
26 ospeed: INTEGER[0..32767];
29 PROCEDURE tgetent(bp, name: ADDRESS): INTEGER;
30 (* name must be null-terminated *)
32 PROCEDURE tgetnum(id: ADDRESS): INTEGER;
33 (* id must be null-terminated *)
35 PROCEDURE tgetflag(id: ADDRESS): INTEGER;
36 (* id must be null-terminated *)
38 PROCEDURE tgetstr(id: ADDRESS; area: ADDRESS): ADDRESS;
39 (* id must be null-terminated *)
41 PROCEDURE tgoto(cm: ADDRESS; col, line: INTEGER) : ADDRESS;
42 (* cm must be null-terminated *)
44 PROCEDURE tputs(cp: ADDRESS; affcnt: INTEGER; p: PUTPROC);
45 (* cp must be null-terminated *)