Skip to content

Commit

Permalink
【TTY (终端)】升级到 v6.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h7lin committed Feb 22, 2017
1 parent 8145839 commit f073c16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tty/readstream_setrawmode_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
added: v0.7.7
-->

允许配置 `tty.ReadStream` 作为一个原始设备来操作。

当在原始模式中,输入总是按字符生效,但不包括修饰符。
此外,终端对字符的所有特殊处理会被禁用,包括应答输入的字符。
注意,该模式中 `CTRL`+`C` 不再产生一个 `SIGINT`

* `mode` {boolean} 如果为 `true`,则配置 `tty.ReadStream` 作为一个原始设备来操作。
如果为 `false`,则配置 `tty.ReadStream` 以默认模式来操作。
`readStream.isRaw` 属性会被设为对应的值。
Expand Down

0 comments on commit f073c16

Please sign in to comment.