Amiga Unix — 68040 · 68060

Manual pages › X Window and screen libraries (3X)

tam(3X)

TAM transition libraries

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME · SYNOPSIS · DESCRIPTION · FUNCTIONS · SEE ALSO

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 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 dagger (-) are macros and do not return a value. For a complete description of each routine, see the UNIX PC 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(3X).
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).

char *hfile, *htitle;

int fixterm()              See curses(3X).

flash()|

int flushinp()

int form (form, op)        See form(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 menu(3X).
menu_t *menu;
int op;

int message (mtype, hfile, htitle, format [, arg ...]
                           See message(3X).
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 pb_check (stream)      See paste(3X).
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)
                           See wind(3X).
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
                           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)         NOT SUPPORTED.
short wn;
char *cp;

SEE ALSO

curses(3X).