diff options
author | Michael Brown | 2008-09-07 23:08:40 +0200 |
---|---|---|
committer | Michael Brown | 2008-09-07 23:08:40 +0200 |
commit | 8223084afc206000312611a3fcfa30a28500d1a3 (patch) | |
tree | 1d733ec98952d1b1fc7e74e6ae46e7605c43212c /contrib | |
parent | [pcbios] Add extra debugging messages relating to the system memory map (diff) | |
download | ipxe-8223084afc206000312611a3fcfa30a28500d1a3.tar.gz ipxe-8223084afc206000312611a3fcfa30a28500d1a3.tar.xz ipxe-8223084afc206000312611a3fcfa30a28500d1a3.zip |
[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.
Diffstat (limited to 'contrib')
-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 cc4fd005..8cd3835c 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 ); } |