tam(3curses) tam(3curses)
NAME
tam - TAM transition libraries
SYNOPSIS
cc -I /usr/include/tam [flag . . . ] file . . . -lcurses [library] . . .
#include <tam.h>
DESCRIPTION
These routines are used to port UNIX PC character-based TAM
programs to any machine so that they will run using any
terminal supported by curses(3curses), the low-level Extended
Terminal Interface 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(3curses) libraries.
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 references below.
Routines | Description
_____________________________|_________________________
addch-, addstr- | see curses(3curses)
_____________________________|_________________________
adf_gttok | converts word to token
_____________________________|_________________________
adf_gtwrd | Gets next word from
| string and copies it to
| buffer
_____________________________|_________________________
adf_gtxcd | gets next text code
| from string and copies
| it to buffer
_____________________________|_________________________
attroff, attron, baudrate, | see curses(3curses)
beep, cbreak, clear, |
clearok-, clrtobot, clrtoeol,|
delch, deleteln, echo, |
endwin, erase-, |
_____________________________|_________________________
exhelp | see message(1F)
_____________________________|_________________________
Copyright 1994 Novell, Inc. Page 1
tam(3curses) tam(3curses)
fixterm, flash-, flushinp | see curses(3curses)
_____________________________|_________________________
form | see forms(3curses)
_____________________________|_________________________
getch, getyx-, initscr, | see curses(3curses)
insch, insertln |
_____________________________|_________________________
iswind | always returns 0
_____________________________|_________________________
kcodemap, keypad, leaveok- | see curses(3curses)
_____________________________|_________________________
menu | see menus(3curses)
_____________________________|_________________________
message, mtype | see message(1F)
Routines | Description
____________________________|_______________________________
move-, mvaddch-, | see curses(3curses)
mvaddstr-, mvinch |
____________________________|_______________________________
nl-, nocbreak, nodelay, | not supported
noecho |
____________________________|_______________________________
nonl- | not supported
____________________________|_______________________________
pb_check | Checks whether paste buffer
| is empty or not
____________________________|_______________________________
pb_empty | Clears out the paste buffer
| and closes it
____________________________|_______________________________
pb_gbuf | Reads pate buffer file into
| buffer
____________________________|_______________________________
pb_gets | Reads paste buffer file,
| converts it to text
____________________________|_______________________________
pb_name | Gets name of paste buffer
| file
____________________________|_______________________________
pb_open | Opens/creates the paste
| buffer file
____________________________|_______________________________
pb_puts | Outputs the string to the
| paste buffer in ADF format
Copyright 1994 Novell, Inc. Page 2
tam(3curses) tam(3curses)
____________________________|_______________________________
pb_seek | Seeks to end of paste buffer
| file and sets for append
____________________________|_______________________________
pb_weof | Outputs ``EOF'' string to
| paste buffer and closes the
| file
____________________________|_______________________________
printw, refresh-, resetterm,| see curses(3curses)
resetty, savetty |
____________________________|_______________________________
track, track_t | maps to wgetc in the current
| window
____________________________|_______________________________
wcmd | Outputs a null- terminated
| string to the
| entry/echo line.
____________________________|_______________________________
wcreate | creates a window
____________________________|_______________________________
wdelete | deletes the specified window
____________________________|_______________________________
wexit | deletes all windows and exits
____________________________|_______________________________
wgetc | gets the keyboard input
____________________________|_______________________________
wgetmouse | no-op; returns 0
____________________________|_______________________________
wgetpos | Gets the current position
| (row, column) of the cursor
| in the specified window (wn).
____________________________|_______________________________
wgetsel | returns the currently
| selected window
Routines | Description
____________________|__________________________________
wgetstat | returns the information in WSTAT
| for a window
____________________|__________________________________
wgoto | moves the window's cursor to a
| specified row, column
____________________|__________________________________
wicoff | no-op; returns 0
____________________|__________________________________
Copyright 1994 Novell, Inc. Page 3
tam(3curses) tam(3curses)
wicon | no-op; returns 0
____________________|__________________________________
wind | creates a window of specific
| height and width and loads it
| with the specified fonts
____________________|__________________________________
winit | Sets up the process for window
| access
____________________|__________________________________
wlabel, wndelay, wnl| outputs a null-terminated string
| to the window label area
____________________|__________________________________
wpostwait | Reverses the effects of wprexec.
____________________|__________________________________
wprexec | Performs the appropriate actions
| for passing a window to a child
| process.
____________________|__________________________________
wprintf, wprompt | Outputs a null-terminated string
| to the prompt line.
____________________|__________________________________
wputc | Outputs a character to a window.
____________________|__________________________________
wputs | Outputs a character string to a
| window.
____________________|__________________________________
wrastop | not supported
____________________|__________________________________
wreadmouse | no-op; returns 0
____________________|__________________________________
wrefresh | Flushes all output to the
| window.
____________________|__________________________________
wselect | Selects the specified window as
| the current or active one.
____________________|__________________________________
wsetmouse | no-op; returns 0
____________________|__________________________________
wsetstat | Sets the status for a window.
____________________|__________________________________
wslk | Writes a null-terminated string
| to a set of screen-labeled keys.
____________________|__________________________________
|
Copyright 1994 Novell, Inc. Page 4
tam(3curses) tam(3curses)
wslk | Writes a null-terminated string
| to a screen-labeled key. The
| alternate form writes all the
| screen-labeled keys at once more
| efficiently.
____________________|__________________________________
wuser | not supported
Copyright 1994 Novell, Inc. Page 5