Add Stdin.isTerminal.

This commit is contained in:
Bob Nystrom
2016-05-21 12:51:11 -07:00
parent 06731f66d4
commit 6002cc4d65
6 changed files with 20 additions and 0 deletions
+6
View File
@@ -16,6 +16,12 @@ Defaults to `false`.
Sets raw mode on or off.
### **isTerminal**
Returns `true` if Stdin is connected to a "TTY". This is true when the user is
running Wren in an interactive terminal, and false if it its input is coming
from a pipe.
### **readByte**()
Reads one byte of input from stdin. Blocks the current fiber until a byte has