aboutsummaryrefslogtreecommitdiff
path: root/examples/compat.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/compat.lua')
-rw-r--r--examples/compat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/compat.lua b/examples/compat.lua
index a59d964..c712105 100644
--- a/examples/compat.lua
+++ b/examples/compat.lua
@@ -12,7 +12,7 @@ if sys.windows then
12 os.getenv = sys.getenv -- luacheck: ignore 12 os.getenv = sys.getenv -- luacheck: ignore
13 13
14 -- Set console output to UTF-8 encoding. 14 -- Set console output to UTF-8 encoding.
15 sys.setconsoleoutputcp(65001) 15 sys.setconsoleoutputcp(sys.CODEPAGE_UTF8)
16 16
17 -- Set up the terminal to handle ANSI escape sequences on Windows. 17 -- Set up the terminal to handle ANSI escape sequences on Windows.
18 if sys.isatty(io.stdout) then 18 if sys.isatty(io.stdout) then