Returns the message from the selected screen.
#include <screen.h> int InputFromScreen ( scr_t scrID, const char *allowedCharacterSet, size_t bufferLength, size_t editWidth, char *buffer, int linesToProtect, int hasDefaultString, const char *defaultString, const char *promptText, ... )”;
(IN) Specifies the screen ID where the message is to be displayed.
(IN) Points to a string defining the allowable characters; use "../xFF" for the ASCII character set.
(IN) Specifies the size, in bytes, of the buffer.
(IN) Specifies the number of bytes in the input string.
(OUT) Points to the buffer that receives the input string from the screen.
(IN) Specifies the number of lines that have to be protected from the current input row upwards. Thus, if linesToProtect is 2 and the current input row number is 4, rows 3 and 4 have to protected.
(IN) Specifies whether a default string exists for the screen.
(IN) Points to the null terminated string, which is the default string. Pass NULL if one does not exist.
(IN) Points to a null-terminated string, which prompts the user for input. This string is an ASCII control string similar to that used with the sprintf function (except for floating point specifiers). See Print Format Control Strings.
Specifies arguments indicated by the promptText parameter.
If successful, returns 0.
For sample code, see Scroll.c.