From 8996a5022fa82e5d5335f71580d0cd6b6d323c9b Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sat, 8 Jun 2024 09:28:20 +0200 Subject: switch termsize results to standard; rows, cols --- src/term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-55-g6feb