Browse Source

[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.
tags/v0.9.4
Michael Brown 15 years ago
parent
commit
8223084afc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      contrib/bochs/serial-console

+ 2
- 2
contrib/bochs/serial-console View File

@@ -224,8 +224,8 @@ if ( -t STDIN ) {
224 224
   $restore_termios = POSIX::Termios->new;
225 225
   $termios->getattr ( fileno(STDIN) );
226 226
   $restore_termios->getattr ( fileno(STDIN) );
227
-  $termios->setlflag ( $termios->getlflag &
228
-		       ~(ICANON) & ~(ECHO) );
227
+  $termios->setlflag ( $termios->getlflag & ~(ICANON) & ~(ECHO) );
228
+  $termios->setiflag ( $termios->getiflag & ~(ICRNL) );
229 229
   $termios->setattr ( fileno(STDIN), TCSANOW );
230 230
 }
231 231
 

Loading…
Cancel
Save