aboutsummaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/term.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index 0325208..a389e06 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1226,6 +1226,8 @@ static int lst_setconsolecp(lua_State *L) {
1226 int success = TRUE; 1226 int success = TRUE;
1227#ifdef _WIN32 1227#ifdef _WIN32
1228 SetConsoleCP(cp); 1228 SetConsoleCP(cp);
1229#else
1230 (void)cp;
1229#endif 1231#endif
1230 lua_pushboolean(L, success); 1232 lua_pushboolean(L, success);
1231 return 1; 1233 return 1;
@@ -1262,6 +1264,8 @@ static int lst_setconsoleoutputcp(lua_State *L) {
1262 int success = TRUE; 1264 int success = TRUE;
1263#ifdef _WIN32 1265#ifdef _WIN32
1264 SetConsoleOutputCP(cp); 1266 SetConsoleOutputCP(cp);
1267#else
1268 (void)cp;
1265#endif 1269#endif
1266 lua_pushboolean(L, success); 1270 lua_pushboolean(L, success);
1267 return 1; 1271 return 1;