summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2024-06-08 09:28:20 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2024-06-08 09:28:20 +0200
commit8996a5022fa82e5d5335f71580d0cd6b6d323c9b (patch)
treeaac6b6a015cf06aad845627f51b739fe58f85166 /src
parent52562e9986f8f5a4d2dda4333acba110734def0f (diff)
downloadluasystem-8996a5022fa82e5d5335f71580d0cd6b6d323c9b.zip
switch termsize results to standard; rows, cols
Diffstat (limited to 'src')
-rw-r--r--src/term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 79fb801..db3c300 100644
--- a/src/term.c
+++ b/src/term.c
@@ -857,10 +857,10 @@ static int lst_readkey(lua_State *L) {
/***
-Get the size of the terminal in columns and rows.
+Get the size of the terminal in rows and columns.
@function termsize
-@treturn[1] int the number of columns
@treturn[1] int the number of rows
+@treturn[1] int the number of columns
@treturn[2] nil
@treturn[2] string error message
*/
@@ -885,8 +885,8 @@ static int lst_termsize(lua_State *L) {
rows = ws.ws_row;
#endif
- lua_pushinteger(L, columns);
lua_pushinteger(L, rows);
+ lua_pushinteger(L, columns);
return 2;
}