readStream.isRaw
boolean
值,如果终端当前配置为作为原始设备运行,则为 true
。
¥A boolean
that is true
if the TTY is currently configured to operate as a
raw device.
当进程启动时,此标志始终为 false
,即使终端在原始模式下运行也是如此。它的值将随着对 setRawMode
的后续调用而改变。
¥This flag is always false
when a process starts, even if the terminal is
operating in raw mode. Its value will change with subsequent calls to
setRawMode
.