tam(3X)
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 port UNIX PC character-based TAM programs to the 3B processor line so that they will run using any terminal supported 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 <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 dagger (†) are macros and do not return a value.
addch (c)† See curses(3X).
char c;
addstr (s)†
char ∗s;
int adf_gttok (ptr, tbl)
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).
char ∗hfile, ∗htitle;
int fixterm() See curses(3X).
flash()†
int flushinp()
int form (form, op) See forms(3X).
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(3X); 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 menus(3X).
menu_t ∗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()† Currently not supported
int nocbreak()
int nodelay (dummy, bool)
int dummy, bool;
int noecho()
nonl()† Currently not supported
int pb_check (stream)
FILE ∗stream;
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])
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(3X). Outputs a null-
short wn; terminated string to the entry/
char ∗cp; echo line.
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(3X).
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,
short wn; column) of the cursor in the
int ∗rowp, ∗colp; specified window (wn).
int wgetsel() Returns the currently selected
window.
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. See tam(3X).
int wlabel (wn, cp) Outputs a null-terminated
short wn; string to the window label
char ∗cp; 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) 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 Currently 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 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
char ∗llabel, ∗slabel; alternate form writes all the
screen-labeled keys at once
more efficiently.
int wuser (wn, cp) Currently not supported.
short wn;
char ∗cp;
SEE ALSO
SunOS 5.1 — Last change: 3 Jul 1990