We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8229047 commit cb381bfCopy full SHA for cb381bf
src/module/io.c
@@ -522,6 +522,7 @@ void stdinIsRawSet(WrenVM* vm)
522
// Can't set raw mode when not talking to a TTY.
523
// TODO: Make this a runtime error?
524
}
525
+ wrenSetSlotBool(vm, 0, isStdinRaw);
526
527
528
void stdinIsTerminal(WrenVM* vm)
test/io/stdin/is_raw.wren
@@ -26,3 +26,6 @@ for (i in 1..4) {
26
// TODO: This doesn't actually detect a visible difference between raw and
27
// non-raw mode. Maybe add support to the test runner for writing non-printing
28
// characters to stdin?
29
+
30
+System.print(Stdin.isRaw=false) // expect: false
31
+System.print(Stdin.isRaw=true) // expect: true
0 commit comments