JeVois
1.17
JeVois Smart Embedded Machine Vision Toolkit
|
|
Console-related utility and helper functions.
Functions | |
bool | jevois::isInputDevice (int fd) |
Indicate whether this fd (which should be from /dev/input/eventX) is keyboard, mouse, etc. More... | |
int | jevois::getConsoleFd () |
Get a file descriptor to the console. More... | |
int | jevois::getActiveTTY () |
Get current active tty. More... | |
void | jevois::muteKeyboard (int tty, int &kb_mode) |
Prevent keystrokes from reaching the tty. More... | |
void | jevois::unMuteKeyboard (int tty, int kb_mode) |
Restore the keyboard mode for given tty. More... | |
int jevois::getActiveTTY | ( | ) |
Get current active tty.
Reads /sys/class/tty/tty0/active and open the tty. Caller should close that fd later using close().
Definition at line 121 of file Console.C.
References IS_CONSOLE.
Referenced by main().
int jevois::getConsoleFd | ( | ) |
bool jevois::isInputDevice | ( | int | fd | ) |
void jevois::muteKeyboard | ( | int | tty, |
int & | kb_mode | ||
) |