aboutsummaryrefslogtreecommitdiff
path: root/examples/readline.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/readline.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/readline.lua b/examples/readline.lua
index 286522c..ff215dd 100644
--- a/examples/readline.lua
+++ b/examples/readline.lua
@@ -442,7 +442,7 @@ local backup = sys.termbackup()
442sys.setconsoleflags(io.stdout, sys.getconsoleflags(io.stdout) + sys.COF_VIRTUAL_TERMINAL_PROCESSING) 442sys.setconsoleflags(io.stdout, sys.getconsoleflags(io.stdout) + sys.COF_VIRTUAL_TERMINAL_PROCESSING)
443sys.setconsoleflags(io.stdin, sys.getconsoleflags(io.stdin) + sys.CIF_VIRTUAL_TERMINAL_INPUT) 443sys.setconsoleflags(io.stdin, sys.getconsoleflags(io.stdin) + sys.CIF_VIRTUAL_TERMINAL_INPUT)
444-- set output to UTF-8 444-- set output to UTF-8
445sys.setconsoleoutputcp(65001) 445sys.setconsoleoutputcp(sys.CODEPAGE_UTF8)
446 446
447-- setup Posix terminal to disable canonical mode and echo 447-- setup Posix terminal to disable canonical mode and echo
448sys.tcsetattr(io.stdin, sys.TCSANOW, { 448sys.tcsetattr(io.stdin, sys.TCSANOW, {