diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-26 00:21:29 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-03 22:35:21 +0100 |
commit | ab06a758b9407a3f4b89d23ac08dc45aa7749f11 (patch) | |
tree | 8ce0ad0d59b2ed86b010be7d7e6a30311a6ad5d3 /include/os.h | |
parent | ec8f0b9024adc1075bb514edefbf186e63f84268 (diff) |
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 <vapier@gentoo.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 3ea6d2ddeef..d5df22f77c8 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); |