From 8939df092e24abdf39edb6fbca90fe9c2b44c3b1 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2015 21:07:27 -0600 Subject: sandbox: Tidy up terminal restore For some reason 'u-boot -D' does not restore the terminal correctly when the 'reset' command is used. Call the terminal restore function explicitly in this case. Signed-off-by: Simon Glass Reviewed-by: Joe Hershberger --- include/os.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/os.h') diff --git a/include/os.h b/include/os.h index ffbdce84643..954a48c9919 100644 --- a/include/os.h +++ b/include/os.h @@ -111,6 +111,14 @@ void os_exit(int exit_code) __attribute__((noreturn)); */ void os_tty_raw(int fd, bool allow_sigs); +/** + * Restore the tty to its original mode + * + * Call this to restore the original terminal mode, after it has been changed + * by os_tty_raw(). This is an internal function. + */ +void os_fd_restore(void); + /** * Acquires some memory from the underlying os. * -- cgit v1.2.3