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