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.tar.gz luasystem-8996a5022fa82e5d5335f71580d0cd6b6d323c9b.tar.bz2 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) { | |||
| 857 | 857 | ||
| 858 | 858 | ||
| 859 | /*** | 859 | /*** |
| 860 | Get the size of the terminal in columns and rows. | 860 | Get the size of the terminal in rows and columns. |
| 861 | @function termsize | 861 | @function termsize |
| 862 | @treturn[1] int the number of columns | ||
| 863 | @treturn[1] int the number of rows | 862 | @treturn[1] int the number of rows |
| 863 | @treturn[1] int the number of columns | ||
| 864 | @treturn[2] nil | 864 | @treturn[2] nil |
| 865 | @treturn[2] string error message | 865 | @treturn[2] string error message |
| 866 | */ | 866 | */ |
| @@ -885,8 +885,8 @@ static int lst_termsize(lua_State *L) { | |||
| 885 | rows = ws.ws_row; | 885 | rows = ws.ws_row; |
| 886 | 886 | ||
| 887 | #endif | 887 | #endif |
| 888 | lua_pushinteger(L, columns); | ||
| 889 | lua_pushinteger(L, rows); | 888 | lua_pushinteger(L, rows); |
| 889 | lua_pushinteger(L, columns); | ||
| 890 | return 2; | 890 | return 2; |
| 891 | } | 891 | } |
| 892 | 892 | ||
