4.8 WFS_CMD_TTU_WRITE

Description This command displays the specified text on the display of the text terminal unit .

Input Param LPWFSTTUWRITE lpWrite;

typedef struct _wfs_ttu_write
{
WORD fwMode;
WORD wPosX;
WORD wPosY;
WORD fwTextAttr;
LPSTR lpsText;
} WFSTTUWRITE, * LPWFSTTUWRITE;

fwMode
Specifies whether the position of the output is absolute or relative to the current cursor position. Possible values are:

Value Meaning

WFS_TTU_POSRELATIVE The output is positioned relative to the current cursor position.

WFS_TTU_POSABSOLUTE The output is positioned absolute at the position specified in wPosX and wPosY.

wPosX
Specifies the horizontal position, if fwMode is set to WFS_TTU_POSABSOLUTE. Or an offset relative to the current cursor position, if fwMode is set to WFS_TTU_POSRELATIVE.

wPosY
Specifies the vertical position, if fwMode is set to WFS_TTU_POSABSOLUTE. Or an offset relative to the current cursor position, if fwMode is set to WFS_TTU_POSRELATIVE.

fwTextAttr
Specifies the text attributes used for displaying the text as a combination of the following flags:

Value Meaning

WFS_TTU_TEXTUNDERLINED The displayed text will be underlined.

WFS_TTU_TEXTINVERTED The displayed text will be inverted.

WFS_TTU_TEXTFLASH The displayed text will be flashing.

lpsText
Specifies the text that will be displayed.

Output Param None.

Error Codes There are no additional error codes generated by this command.

Events There are no additional events generated by this command.

Comments None.