DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
TAM transition library

Translations from TAM calls to ETI calls

``Translations from TAM to ETI function calls'' summarizes the translation of TAM to low-level ETI (curses) functions. Eventually, if you want to rewrite your TAM applications to make ETI calls directly and to run more efficiently, you can use this table as a guide.

Translations from TAM to ETI function calls

TAM Function Low-level ETI curses(3ocurses) equivalent
winit Call initscr
wexit Call endwin and exit
iswind Return FALSE
wcreate Call newwin or new_panel
wdelete Call delwin or del_panel
wselect Call touchwin and wrefresh, then update the list of windows to indicate the new ordering
wgetsel Call top_panel or bottom_panel with NULL pointer
wgetstat Call getyx, getmaxyx, or getbegyx
wsetstat Call del_panel, then new_panel
wputc Call waddch
wputs Call waddstr
wprintf Call wprintw
wslk Create small window at bottom and use curses routines with wprintw
wcmd The character string passed by wcmd is copied to the bottom of the screen
wprompt The character string passed by wprompt is copied to the bottom of the screen
wlabel The character string is printed in the upper left corner of the specified window
wrefresh Call wrefresh. If the window index is -1, all windows should be refreshed in the appropriate order
wuser This functionality is not necessary. Remove this from your code
wgoto Call wmove
wgetpos Call getyx
wgetc Call wgetch. Character translation from ETI to ANSI may be required, depending on the current keypad mode
kcodemap This functionality is not necessary. Remove this from your code
keypad Call keypad
wsetmouse This is a null operation
wgetmouse This is a null operation
wreadmouse This is a null operation
wprexec Call erase and refresh
wpostwait Call wrefresh for each window in the window list
wnl The functionality of this routine is not supported by curses
wicon This is a null operation
wicoff This is a null operation
wrastop This is a null operation
track Call wgetch
initscr Call initscr
nl The functionality of this routine is not supported by curses
nonl The functionality of this routine is not supported by curses
cbreak Call cbreak
nocbreak Call nocbreak
echo Call echo
noecho Call noecho
insch Call insch
getch Call getch
flushinp Call flushinp
attron Call attron
attroff Call attroff
savetty Call savetty
resetty Call resetty
addch Call addch
addstr Call addstr
beep Call beep
clear Call clear
clearok This is a null operation
clrtobot Call clrtobot
clrtoeol Call clrtoeol
delch Call delch
deleteln Call deleteln
erase Call erase
flash Call flash
getyx Call wgetyx
insertln Call insertln
leaveok This is a null operation
move Call move
mvaddch Call move and addch
mvaddstr Call move and addstr
mvinch Call move and inch
nodelay Call nodelay
wndelay Call nodelay
refresh Call refresh
resetterm Call resetterm
baudrate Call baudrate
endwin Call endwin
fixterm Call fixterm
printw Call printw

Because the high-level TAM functions in the table in ``Usable TAM high-level functions'' make calls only to the low-level functions in the previous table, you can continue to use those high-level TAM functions in your application programs as well. However, with ETI, you cannot use other TAM high-level functions such as wtargeton.

Usable TAM high-level functions

form menu message
pb_empty pb_gets adf_gttok
pb_open pb_check pb_seek
pb_name pb_puts pb_weof
pb_gbuf adf_gtwrd adf_gtxcd
wind exhelp  


Next topic: The TAM transition keyboard subsystem
Previous topic: How the TAM transition library works

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004