DFNgen
2.0
DFN Model Generator
|
Go to the source code of this file.
Functions | |
void | reset_terminal_mode () |
void | set_conio_terminal_mode () |
int | kbhit () |
int | getch () |
Variables | |
struct termios | orig_termios |
int getch | ( | ) |
Get char of key press. Returns char as int.
Definition at line 57 of file hotkey.cpp.
int kbhit | ( | ) |
Check if a key has been pressed. Returns non-zero on key press.
Definition at line 44 of file hotkey.cpp.
void reset_terminal_mode | ( | ) |
Restores original terminal settings
Definition at line 12 of file hotkey.cpp.
void set_conio_terminal_mode | ( | ) |
Sets custom terminal settings. This allows us to listen for a key press without halting execution of program
Definition at line 23 of file hotkey.cpp.
struct termios orig_termios |
Definition at line 36 of file DFNmain.cpp.