mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
stty(): Restore cursor as well, if it was hidden previously
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
9a98bff23f
commit
e83dcafb02
1 file changed
+3
@@ -115,6 +115,9 @@ void stty(int fd, speed_t speed)
|
|||||||
term.c_cc[VKILL] = CTRL('U');
|
term.c_cc[VKILL] = CTRL('U');
|
||||||
term.c_cc[VERASE] = CERASE;
|
term.c_cc[VERASE] = CERASE;
|
||||||
tcsetattr(fd, TCSANOW, &term);
|
tcsetattr(fd, TCSANOW, &term);
|
||||||
|
|
||||||
|
/* Restore cursor if it was hidden previously */
|
||||||
|
write(fd, "\033[?25h", 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user