Mercurial > prosody-hg
diff util/prosodyctl/shell.lua @ 13047:d939bf469057
util.human.io: Prefer using the $COLUMNS environment variable if set (by readline)
Feels like it should be faster.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 07 Apr 2023 13:42:20 +0200 |
| parents | 4c3dc767fb11 |
| children | 4ae759490e31 |
line wrap: on
line diff
--- a/util/prosodyctl/shell.lua Fri Apr 07 13:38:59 2023 +0200 +++ b/util/prosodyctl/shell.lua Fri Apr 07 13:42:20 2023 +0200 @@ -30,7 +30,7 @@ end local function send_line(client, line) - client.send(st.stanza("repl-input", { width = os.getenv "COLUMNS" or term_width() }):text(line)); + client.send(st.stanza("repl-input", { width = term_width() }):text(line)); end local function repl(client)
