浏览代码

[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 16 年前
父节点
当前提交
8223084afc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      contrib/bochs/serial-console

+ 2
- 2
contrib/bochs/serial-console 查看文件

@@ -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
 

正在加载...
取消
保存