aboutsummaryrefslogtreecommitdiff
path: root/doc_topics/03-terminal.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc_topics/03-terminal.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc_topics/03-terminal.md b/doc_topics/03-terminal.md
index 06a6b96..9bad359 100644
--- a/doc_topics/03-terminal.md
+++ b/doc_topics/03-terminal.md
@@ -51,8 +51,8 @@ recent versions of Lua also have UTF-8 support. So `luasystem` also focusses on
51 51
52On Windows UTF-8 output can be enabled by setting the output codepage like this: 52On Windows UTF-8 output can be enabled by setting the output codepage like this:
53 53
54 -- setup Windows output codepage to UTF-8; 65001 54 -- setup Windows output codepage to UTF-8
55 sys.setconsoleoutputcp(65001) 55 sys.setconsoleoutputcp(sys.CODEPAGE_UTF8)
56 56
57Terminal input is handled by the [`_getwchar()`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/getchar-getwchar) function on Windows which returns 57Terminal input is handled by the [`_getwchar()`](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/getchar-getwchar) function on Windows which returns
58UTF-16 surrogate pairs. `luasystem` will automatically convert those to UTF-8. 58UTF-16 surrogate pairs. `luasystem` will automatically convert those to UTF-8.