NAME

printstr_unit -- print string in window

PROTOTYPE

unitptr printstr_unit( char *pcWinDesc, int iWidth, int iHeight, int iAddLines, int iMode, unitptr uHost)

ARGUMENTS

char *pcWinDesc
window descriptor
int iWidth
width of text display (in chars). If negative, use terminal mode
int iHeight
height of text display (in chars)
int iAddLines
number of non-visible text lines
int iMode
0 = print current string only, 1 = terminal mode 2 = terminal mode with newlines between consecutive strings
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[1]:
(input field 0) text string to print

EXECUTION OF CREATED UNIT:

Displays current input string in window. If iWidth<0, a simple "terminal mode" is used, i.e., each new input is appended to the current text, and an amount of iHeight+iAddLines lines is kept.

CONTROL MODES:

NST_INIT clears the display and any buffered text. Most control modes for the input_window unit are also recognized by this unit.

STATUS:

alpha

SEE ALSO:

input_window, output_window

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../nstsrc/nst_scrn.c