show
Summary
#include <dataman/dataman.h>
-or-
#include <dataman/sort.h>
show(row,col,str,...,ENDLIST);
int row,col;
char *str;
Description
This procedure does a cursor positioned write to the
terminal. This procedure takes a variable number of
arguments, but they must always follow the same format.
The arguments MUST come in sets of three, the first two
are the row and column to place the display, and the
third, str, is a string to display. The last argument
MUST be the manifest constant ENDLIST. This is the end-
of-argument-list indicator. The predefined string TOP
clears to the end of the screen from the cursor position,
and EOL clears to the end of the line.
Example
#include <dataman/dataman.h>
main(argc,argv)
{
char inpt[2];
....
show (0,0,TOP,0,30,"File Maintenance",
2,30,"A Add",
3,30,"B List",
4,30,"C Change",
5,30,"D Delete",
6,30,"Selection:",ENDLIST);
*inpt = ' ';
*(inpt+1) = '\0';
accept(6,41,inpt,UPPER) else {
flush();
return;
}
...
}
«previous next»