Jpp
16.0.1
the software that should make you happy
|
Enable unbuffered terminal input. More...
#include <JKeypress.hh>
Public Member Functions | |
JKeypress (const bool echo=true) | |
Constructor. More... | |
~JKeypress () | |
Destructor. More... | |
char | get () |
Get single character. More... | |
bool | timeout (JTimeval timeout) |
Timeout method. More... | |
Private Attributes | |
termios | termcap |
JFileDescriptorMask | mask |
Enable unbuffered terminal input.
Definition at line 32 of file JKeypress.hh.
|
inline |
Constructor.
The settings are modified by the constructor and the original settings are reset by the destructor.
echo | enable/disable echo of input character |
Definition at line 42 of file JKeypress.hh.
|
inline |
|
inline |
Get single character.
This method returns as soon as input from terminal is available.
Definition at line 74 of file JKeypress.hh.
|
inline |
Timeout method.
This method returns immediatly if input from terminal is available, else after the specified timeout period.
timeout | timeout |
Definition at line 92 of file JKeypress.hh.
|
private |
Definition at line 101 of file JKeypress.hh.
|
private |
Definition at line 102 of file JKeypress.hh.