Sygaldry
|
Command line input reader using standard IO calls. More...
Public Member Functions | |
bool | ready () |
char | getchar () |
Public Attributes | |
int | last_read |
Command line input reader using standard IO calls.
This reader calls getc
to get one character. There are some limitations to this implementation:
ready()
needs to be called once before every call to getchar()
, which doesn't actually get any charactersgetc
is blocking, and this implementation cannot be usedIt remains as future work to resolve the latter issue, but the former is considered part of the API. Beware!