|Example: TE_typing_style||Send Text Functions|
Determines the way text is typed into the terminal emulator.
int TE_typing_style( const char *style );
|style||Indicates the typing style, either FAST or HUMAN. FAST sends characters as a single string. HUMAN waits for a specified interval between characters, and has the following format: HUMAN, delay [,first_delay] The delay indicates the interval, in milliseconds, between keystrokes. The optional parameter first_delay indicates the wait, in milliseconds, before typing the first character in the string.|
The TE_typing_style function determines how typed strings are submitted to the client application running in the terminal emulator. If you select FAST, characters are sent as a single string. This input style requires no arguments.
If you select HUMAN, the individual characters are sent separately. You determine the delay between characters using two arguments. The delay indicates the interval to wait before submitting each individual character. The optional first_delay parameter indicates the interval to wait before typing the first character in the string.
The default typing style is HUMAN.
Note: The initial wait time is reset between TE_type calls. To make a sequence of keystrokes follow the type style defined by a TE_typing_style call, concatenate the entire sequence in the same TE_type function
This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.
You cannot use standard parameterization for any arguments in this function.