aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/firemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firemon/firemon.c')
-rw-r--r--src/firemon/firemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c
index 83cce5c32..679c5a3e9 100644
--- a/src/firemon/firemon.c
+++ b/src/firemon/firemon.c
@@ -74,7 +74,7 @@ void firemon_drop_privs(void) {
74// sleep and wait for a key to be pressed 74// sleep and wait for a key to be pressed
75void firemon_sleep(int st) { 75void firemon_sleep(int st) {
76 if (terminal_set == 0) { 76 if (terminal_set == 0) {
77 tcgetattr(0, &twait); // get current terminal attirbutes; 0 is the file descriptor for stdin 77 tcgetattr(0, &twait); // get current terminal attributes; 0 is the file descriptor for stdin
78 memcpy(&tlocal, &twait, sizeof(tlocal)); 78 memcpy(&tlocal, &twait, sizeof(tlocal));
79 twait.c_lflag &= ~ICANON; // disable canonical mode 79 twait.c_lflag &= ~ICANON; // disable canonical mode
80 twait.c_lflag &= ~ECHO; // no echo 80 twait.c_lflag &= ~ECHO; // no echo