diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-09-07 22:08:40 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-09-07 22:08:40 +0100 |
commit | 8223084afc206000312611a3fcfa30a28500d1a3 (patch) | |
tree | 1d733ec98952d1b1fc7e74e6ae46e7605c43212c | |
parent | 18aa0e79d233862f5cbd39853ac062af59c9d47b (diff) | |
download | ipxe-8223084afc206000312611a3fcfa30a28500d1a3.zip ipxe-8223084afc206000312611a3fcfa30a28500d1a3.tar.gz ipxe-8223084afc206000312611a3fcfa30a28500d1a3.tar.bz2 |
[util] Disable automatic CR->LF conversion in serial-console utility
DUET (the EFI test environment) seems not to handle LF, so inhibit the
CR->LF conversion that the pty does for us by default. This doesn't
affect operation of gPXE, which will happily accept either CR or LF.
-rwxr-xr-x | contrib/bochs/serial-console | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bochs/serial-console b/contrib/bochs/serial-console index cc4fd00..8cd3835 100755 --- a/contrib/bochs/serial-console +++ b/contrib/bochs/serial-console @@ -224,8 +224,8 @@ if ( -t STDIN ) { $restore_termios = POSIX::Termios->new; $termios->getattr ( fileno(STDIN) ); $restore_termios->getattr ( fileno(STDIN) ); - $termios->setlflag ( $termios->getlflag & - ~(ICANON) & ~(ECHO) ); + $termios->setlflag ( $termios->getlflag & ~(ICANON) & ~(ECHO) ); + $termios->setiflag ( $termios->getiflag & ~(ICRNL) ); $termios->setattr ( fileno(STDIN), TCSANOW ); } |