![]() |
VR-Forces Developer's Guide
|
Go to the source code of this file.
Functions | |
| DT_DLL_vrfutil char * | DtGetInputLine () |
| DT_DLL_vrfutil int | DtCharWaiting () |
| DT_DLL_vrfutil char | DtReadChar () |
| DT_DLL_vrfutil bool | DtStdinIsInteractive () |
| DT_DLL_vrfutil char* DtGetInputLine | ( | ) |
This file should be moved into VR-Link's vlutil.
A non-blocking read for a line of console input. If user has not hit return, the function returns NULL immediately. When return is hit, the function returns the line of input
| DT_DLL_vrfutil int DtCharWaiting | ( | ) |
Returns 1 if there is input to be read from the keyboard, 0 otherwise.
| DT_DLL_vrfutil char DtReadChar | ( | ) |
A blocking read for keyboard input, returning a single character DtGetInputLine uses DtCharWaiting to find out if this will block before calling it.
| DT_DLL_vrfutil bool DtStdinIsInteractive | ( | ) |
Returns true if standard input is connected to an interactive terminal. Use this to decide whether it makes sense to poll for console input. Returns false when stdin has been redirected or closed, for example when the process is launched non-interactively by an automated test.