From ab06a758b9407a3f4b89d23ac08dc45aa7749f11 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Oct 2011 00:21:29 +0000 Subject: sandbox: put stdin into raw mode This allows us to act like a serial device: we get tab chars and CTRL+C and respond appropriately. Signed-off-by: Mike Frysinger Tested-by: Simon Glass --- include/os.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/os.h') diff --git a/include/os.h b/include/os.h index 3ea6d2ddee..d5df22f77c 100644 --- a/include/os.h +++ b/include/os.h @@ -71,3 +71,8 @@ int os_close(int fd); * @param exit_code exit code for U-Boot */ void os_exit(int exit_code); + +/** + * Put tty into raw mode to mimic serial console better + */ +void os_tty_raw(int fd); -- cgit v1.2.3