diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-08 09:28:20 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-08 09:28:20 +0200 |
commit | 8996a5022fa82e5d5335f71580d0cd6b6d323c9b (patch) | |
tree | aac6b6a015cf06aad845627f51b739fe58f85166 /src | |
parent | 52562e9986f8f5a4d2dda4333acba110734def0f (diff) | |
download | luasystem-8996a5022fa82e5d5335f71580d0cd6b6d323c9b.zip |
switch termsize results to standard; rows, cols
Diffstat (limited to 'src')
-rw-r--r-- | src/term.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |