summaryrefslogtreecommitdiff
path: root/examples/flag_debugging.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/flag_debugging.lua')
-rw-r--r--examples/flag_debugging.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/flag_debugging.lua b/examples/flag_debugging.lua
new file mode 100644
index 0000000..5f1d496
--- /dev/null
+++ b/examples/flag_debugging.lua
@@ -0,0 +1,7 @@
+local sys = require "system"
+
+-- Print the Windows Console flags for stdin
+sys.listconsoleflags(io.stdin)
+
+-- Print the Posix termios flags for stdin
+sys.listtermflags(io.stdin)