tam(3X) tam(3X)
NAME
tam - TAM transition libraries
SYNOPSIS
#include <tam.h>
cc -I /usr/add-on/include/tam [flags] files -ltam -lcurses [libraries]
DESCRIPTION
These routines are used to port UNIX PC character-based TAM programs
to the 3B processor line so that they will run using any terminal sup-
ported by curses(3X), the low-level ETI library. Once a TAM program
has been changed to remove machine-specific code, it can be recompiled
with the standard TAM header file <tam.h> and linked with the TAM
transition and curses(3X) libraries.
Note that TAM will probably not be supported in future releases.
FUNCTIONS
The following is a list of TAM routines supplied in the transition
library. Those routines marked with a pound sign (#) are macros and do
not return a value.
addch (c)# See curses(3X).
char c;
addstr (s)#
char *s;
int adfgttok (ptr, tbl)
char *ptr;
struct skwtbl *tbl;
char *adfgtwrd (sptr, dptr)
char *sptr, *dptr;
char *adfgtxcd (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()
Page 1 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
clearok (dummy, dummy)#
int dummy;
int clrtobot()
int clrtoeol()
int delch()
int deleteln()
int echo()
int endwin()
erase()#
int exhelp (hfile, htitle)
char *hfile, *htitle;
int fixterm() See curses(3X).
flash()#
int flushinp()
int form (form, op)
formt *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() Always returns 0.
char *kcodemap (code) See curses(3X).
unsigned char code;
int keypad (dummy, flag)
int dummy, flag;
Page 2 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
leaveok (dummy, dummy)#
int dummy;
int menu (menu, op)
menut *menu;
int op;
int message (mtype, hfile, htitle, format [, arg ...]
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()
int nodelay (dummy, bool)
int dummy, bool;
int noecho()
nonl()# NOT SUPPORTED
int pbcheck (stream)
FILE *stream;
int pbempty (stream)
FILE *stream;
int pbgbuf (ptr, n, fn, stream)
char *ptr;
int n;
int (*fn) ();
FILE *stream;
Page 3 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
char *pbgets (ptr, n, stream)
char *ptr;
int n;
FILE *stream;
char *pbname()
FILE *pbopen()
int pbputs (ptr, stream)
char *ptr;
FILE *stream;
int pbseek (stream)
FILE *stream;
int pbweof (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;
trackt *trk;
int wcmd (wn, cp) 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)
int ret;
int wgetc (wn)
short wn;
Page 4 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
int wgetmouse (wn, ms) no-op; returns 0.
short wn;
struct umdata *ms;
int wgetpos (wn, rowp, colp) Gets the current position (row,
short wn; column) of the cursor in the
int *rowp, *colp; specified window (wn).
int wgetsel() Returns the currently selected win-
dow.
int wgetstat (wn, wstatp) Returns the information in
short wn; WSTAT for a window.
WSTAT *wstatp;
int wgoto (wn, row, col) Moves the window's cursor to
short wn, row, col; a specified 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)
int type, height, width;
short flags;
char *pfont[];
void winit() Sets up the process for window
access.
int wlabel (wn, cp) Outputs a null-terminated
short wn; string to the window label area.
char *cp;
int wndelay (wn, bool)
int wn, bool;
void wnl (wn, flag)
short wn;
int flag;
int wpostwait() Reverses the effects of wprexec().
int wprexec() Performs the appropriate actions
for passing a window to a child
process.
Page 5 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
int wprintf (wn, fmt[, arg1 ... argn])
short wn;
char *fmt;
int wprompt (wn, cp) Outputs a null-terminated
short wn; string to the prompt line.
char *cp;
int wputc (wn, c) Outputs a character
short wn; to a window (wn).
char c;
int wputs (wn, cp) Outputs a character string
short wn; to a window.
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
short wn; to the window.
int wselect (wn) Selects the specified window
short wn; as the 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
short wn; string to a set of
char *slong1, *slong2, *sshort; soft-labeled keys (SLK).
Page 6 Reliant UNIX 5.44 Printed 11/98
tam(3X) tam(3X)
int wslk (wn, kn, llabel, slabel) Writes a null-terminated
short wn, kn; stringto a screen-labeled key.
char *llabel, *slabel; The alternate form writes all
the screen-labeled keys at
once more efficiently.
int wuser (wn, cp) NOT SUPPORTED
short wn;
char *cp;
SEE ALSO
curses(3X).
Page 7 Reliant UNIX 5.44 Printed 11/98