TAM(S) UNIX System V TAM(S)
Name
tam - TAM transition libraries
Syntax
#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
terminal 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.
addch(c)-
char c;
See curses(S)
addstr(s)-
char *s;
int adf_gttok (ptr, tbl)
char *ptr;
struct s_kwtbl *tbl;
See paste(CT)
char *adf_gtwrd (sptr, dptr)
char *sptr, *dptr;
char *adf_gtxcd (sptr, dptr)
char *sptr, *dptr;
int attroff(attrs)
long attrs;
See curses(S)
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)
char *hfile, *htitle;
int fixterm()
See curses(S)
flash()-
int flushinp()
int form (form, op)
form_t *form;
int op;
See form(S)
int getch()
See curses(S)
getyx(win, r, c)-
int win, r, c;
int initscr()
int insch(ch)
char ch;
int insertln()
int iswind()
See tam(S); always returns 0
char *kcodemap (code)
unsigned char code;
See curses(S)
int keypad (dummy, flag)
int dummy, flag;
leaveok(dummy, dummy)-
int dummy;
int menu (menu, op)
menu_t *menu;
int op;
See menu(S)
int message (mtype, hfile, htitle, format [, arg ...]
int mtype;
char *hfile, *htitle, *format;
move(r, c)-
int r, c;
See curses(S)
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()-
int nocbreak()
int nodelay(dummy, bool)
int dummy, bool;
int noecho()
nonl()-
int pb_check (stream)
FILE *stream;
See paste(CT)
int pb_empty (stream)
FILE *stream;
int pb_gbuf (ptr, n, fn, stream)
char *ptr;
int n;
int (*fn) ();
FILE *stream;
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])
char *fmt;
See curses(S)
refresh()-
int resetterm()
int resetty()
int savetty()
int track (w, trk, op, butptr, whyptr)
int w, op, *butptr, *whyptr;
track_t *trk;
See wgetc()
int wcmd (wn, cp)
short wn;
char *cp;
See tam(S). Outputs a null-terminated
string to the entry/echo line.
int wcreate (row, col, height, width, flags)
short row, col, height, width;
unsigned short flags;
Creates a window.
int wdelete (wn)
short wn;
Deletes the specified window.
void wexit(ret)
int ret;
See tam(S)
int wgetc (wn)
short wn;
int wgetmouse (wn, ms)
short wn;
struct umdata *ms;
no-op; returns 0.
int wgetpos (wn, rowp, colp)
short wn;
int *rowp, *colp;
Gets the current position (row, column)
of the cursor in the specified window (wn).
int wgetsel()
Returns the currently selected window.
int wgetstat (wn, wstatp)
short wn;
WSTAT *wstatp;
Returns the information in WSTAT for a window.
int wgoto (wn, row, col)
short wn, row, col;
Moves the window's cursor to a specified row, column.
void wicoff (wn, row, col, icp)
short wn, row, col;
struct icon *icp;
no-op. returns 0.
void wicon (wn, row, col, icp)
short wn, row, col;
struct icon *icp;
no-op. returns 0.
int wind (type, height, width, flags, pfont)
int type, height, width;
short flags;
char *pfont[];
void winit()
Sets up the process for window access. See tam(S).
int wlabel (wn, cp)
short wn;
char *cp;
Outputs a null-terminated string to the window label area.
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.
int wprintf (wn, fmt[, arg1 ... argn])
short wn;
char *fmt;
int wprompt (wn, cp)
short wn;
char *cp;
Outputs a null-terminated string to the prompt line.
int wputc (wn, c)
short wn;
char c;
Outputs a character to a window (wn).
int wputs (wn, cp)
short wn;
char *cp;
Outputs a character string to a window.
int wrastop (w, srcbase, srcwidth, dstbase,
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)
short wn;
int *xp, *yp, *bp, *rp;
no-op; returns 0.
int wrefresh (wn)
short wn;
Flushes all output to the window.
int wselect (wn)
short wn;
Selects the specified window as the current or active one.
int wsetmouse (wn, ms)
short wn;
struct umdata *ms;
no-op; returns 0.
int wsetstat (wn, wstatp)
short wn;
WSTAT *wstatp;
Sets the status for a window.
int wslk (wn, 0, slong1, slong2, sshort)
short wn;
char *slong1, *slong2, *sshort;
Writes a null-terminated to a set of screen labeled keys.
int wslk (wn, kn, llabel, slabel)
short wn, kn;
char *llabel, *slabel;
Writes a null-terminated string to a screen labeled key.
The alternate form writes all the screen labeled keys at once,
which is more efficient.
int wuser (wn, cp)
short wn;
char *cp;
See Also
curses(S), field(S), fieldtype(S), form(S), item(S),
menu(S), panel(S)
(printed 6/20/89)