From 8223084afc206000312611a3fcfa30a28500d1a3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 7 Sep 2008 22:08:40 +0100 Subject: [PATCH] [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. --- contrib/bochs/serial-console | 4 ++-- 1 file 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 ); }