TAM(3C) INTERACTIVE UNIX System TAM(3C)
NAME
tam - TAM transition libraries
SYNOPSIS
#include <tam.h>
cc -I /usr/include/tam [ flags ] files -ltam -lcurses [
libraries ]
DESCRIPTION
These routines are used to convert existing TAM programs
such that they run on the 3B processor line using any termi-
nal supported by curses, the low-level ETI library. Once
you change a TAM program to remove machine-specific code,
you then recompile it #includeing the standard TAM header
file tam.h and link it with the TAM transition and curses
libraries.
FUNCTIONS
The following is a list of TAM routines supplied in the
transition library. Those routines marked with a dagger (†)
are macros and don't return any value. For a complete
description of each routine, see the UNIX System V User's
Manual under the entries indicated.
addch(c)† See curses(3X)
char c;
addstr(s)†
char *s;
int adf_gttok (ptr, tbl) See paste(3T)
char *ptr;
struct s_kwtbl *tbl;
char *adf_gtwrd (sptr, dptr)
char *sptr, *dptr;
char *adf_gtxcd (sptr, dptr)
char *sptr, *dptr;
int attroff(attrs) See curses(3X)
long attrs;
int attron(attrs)
long attrs;
int baudrate()
int beep()
int cbreak()
int clear()
clearok(dummy, dummy)†
int dummy;
int clrtobot()
int clrtoeol()
int delch()
int deleteln()
int echo()
int endwin()
erase()†
int exhelp (hfile, htitle) See message(3T)
Rev. Extended Terminal Interface Page 1
TAM(3C) INTERACTIVE UNIX System TAM(3C)
char *hfile, *htitle;
int fixterm() See curses(3X)
flash()†
int flushinp()
int form (form, op) See form(3T)
form_t *form;
int op;
int getch() See curses(3X)
getyx(win, r, c)†
int win, r, c;
int initscr()
int insch(ch)
char ch;
int insertln()
int iswind() See TAM(3T); always returns 0
char *kcodemap (code) See curses(3X)
unsigned char code;
int keypad (dummy, flag)
int dummy, flag;
leaveok(dummy, dummy)†
int dummy;
int menu (menu, op) See menu(3T)
menu_t *menu;
int op;
int message (mtype, hfile, htitle, format [, arg ...]See message(3T)
int mtype;
char *hfile, *htitle, *format;
move(r, c)† See curses(3X)
int r, c;
mvaddch(r, c, ch)†
int r, c;
char ch;
mvaddstr(r, c, s)†
int r, c;
char * s;
unsigned long mvinch(r, c)
int r, c;
nl()† NOT SUPPORTED;
int nocbreak() See ETI Release Notes for a workaround
int nodelay(dummy, bool)
int dummy, bool;
int noecho()
nonl()† NOT SUPPORTED;
See ETI Release Notes for a workaround
int pb_check (stream) See paste(3T)
FILE *stream;
int pb_empty (stream)
FILE *stream;
int pb_gbuf (ptr, n, fn, stream)
char *ptr;
int n;
int (*fn) ();
FILE *stream;
Rev. Extended Terminal Interface Page 2
TAM(3C) INTERACTIVE UNIX System TAM(3C)
char *pb_gets (ptr, n, stream)
char *ptr;
int n;
FILE *stream;
char *pb_name()
FILE *pb_open()
int pb_puts (ptr, stream)
char *ptr;
FILE *stream;
int pb_seek (stream)
FILE *stream;
int pb_weof (stream)
FILE *stream;
int printw (fmt[, arg1 ... argn])See curses(3X)
char *fmt;
refresh()†
int resetterm()
int resetty()
int savetty()
int track (w, trk, op, butptr, whyptr)See wgetc()
int w, op, *butptr, *whyptr;
track_t *trk;
int wcmd (wn, cp) See tam(3T). Outputs a null-terminated
short wn; string to the entry/echo line.
char *cp;
int wcreate (row, col, height, width, flags)Creates a window.
short row, col, height, width;
unsigned short flags;
int wdelete (wn) Deletes the specified window.
short wn;
void wexit(ret) See TAM(3T)
int ret;
int wgetc (wn)
short wn;
int wgetmouse (wn, ms) no-op; returns 0.
short wn;
struct umdata *ms;
int wgetpos (wn, rowp, colp)Gets the current position (row, column)
short wn; of the cursor in the specified
int *rowp, *colp; window (wn).
int wgetsel() Returns the currently selected window.
int wgetstat (wn, wstatp) Returns the information in WSTAT for a
short wn; window.
WSTAT *wstatp;
int wgoto (wn, row, col) Moves the window's cursor to a specified
short wn, row, col; row, column.
void wicoff (wn, row, col, icp)no-op. returns 0.
short wn, row, col;
struct icon *icp;
void wicon (wn, row, col, icp)no-op. returns 0.
short wn, row, col;
struct icon *icp;
int wind (type, height, width, flags, pfont)See wind(3T)
Rev. Extended Terminal Interface Page 3
TAM(3C) INTERACTIVE UNIX System TAM(3C)
int type, height, width;
short flags;
char *pfont[];
void winit() Sets up the process for window access.
See TAM(3T).
int wlabel (wn, cp) Outputs a null-terminated string to the
short wn; window label area.
char *cp;
int wndelay (wn, bool)
int wn, bool;
void wnl (wn, flag) NOT SUPPORTED;
short wn; See ETI Release Notes for workaround.
int flag;
int wpostwait() Reverses the effects of wprexec().
int wprexec() Performs the appropriate actions for
passing a window to a child process.
int wprintf (wn, fmt[, arg1 ... argn])
short wn;
char *fmt;
int wprompt (wn, cp) Outputs a null-terminated string to the
short wn; prompt line.
char *cp;
int wputc (wn, c) Outputs a character to a window (wn).
short wn;
char c;
Rev. Extended Terminal Interface Page 4
TAM(3C) INTERACTIVE UNIX System TAM(3C)
int wputs (wn, cp) Outputs a character string to a window.
short wn;
char *cp;
int wrastop (w, srcbase, srcwidth, dstbase,NOT SUPPORTED.
dstwidth, srcx, srcy, dstx,
dsty, width, height, srcop,
dstop, pattern)
int w;
unsigned short *srcbase, *dstbase, *pattern;
unsigned short srcwidth, dswidth, width, height;
unsigned short srcx, srcy, dstx, dsty;
char srcop, dstop;
int wreadmouse (wn, xp, yp, bp, rp)no-op; returns 0.
short wn;
int *xp, *yp, *bp, *rp;
int wrefresh (wn) Flushes all output to the window.
short wn;
int wselect (wn) Selects the specified window as the
short wn; current or active one.
int wsetmouse (wn, ms) no-op; returns 0.
short wn;
struct umdata *ms;
int wsetstat (wn, wstatp) Sets the status for a window.
short wn;
WSTAT *wstatp;
int wslk (wn, 0, slong1, slong2, sshort)Writes a null-terminated string
short wn; to a set of screen labeled keys.
char *slong1, *slong2, *sshort;
int wslk (wn, kn, llabel, slabel)Writes a null-terminated string
short wn, kn; to a screen labeled key. The alternate form
char *llabel, *slabel; writes all the screen labeled keys
at once, which is more efficient.
int wuser (wn, cp) NOT SUPPORTED.
short wn;
char *cp;
SEE ALSO
curses(3X), field(3X), fieldtype(3X), form(3X), item(3X),
menu(3X), panel(3X).
The UNIX System V ETI Programmer's Guide.
Rev. Extended Terminal Interface Page 5