displayAtPosition()
You can use the consoleLib.displayAtPosition() system function to display a string at a specified location within the active window. If you call the function with a variable set to NULL (or ""), then the effect is to clear the contents of the entire row; see the example later in this topic.
Syntax
consoleLib.displayAtPosition(
text STRING in,
line INT in,
column INT in)
- text
- The string to display.
- line
- The number of the line in which to display the string.
- column
- The number of the column in which to display the string.
Example
The following code does not display the character at row 1, column 50 because the subsequent call to displayAtPosition() with a NULL variable on the same line clears the remainder of the whole row.
t UNICODE(10);
displayAtPosition( "[" , 1, 1);
displayAtPosition( "]" , 1, 50);
t= NULL;
displayAtPosition( t , 1,2); If you need to output
a NULL or "" variable and still preserve the characters
in higher column values, then call displayAtPosition() in
order of increasing columns, as in the following example:
t UNICODE(10);
displayAtPosition( "[" , 1, 1);
t= NULL;
displayAtPosition( t , 1,2);
displayAtPosition( "]" , 1, 50);