diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-07 13:42:20 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-07 13:42:20 +0200 |
commit | 9760019a25dbbb6e04d4ee1ee1366ea14fc0472e (patch) | |
tree | b2a951151b92156055430bd602e7d1f00922d3d7 /util/prosodyctl | |
parent | d73eaf9e5e6c49fff6262ce326bf193108f45695 (diff) | |
download | prosody-9760019a25dbbb6e04d4ee1ee1366ea14fc0472e.tar.gz prosody-9760019a25dbbb6e04d4ee1ee1366ea14fc0472e.zip |
util.human.io: Prefer using the $COLUMNS environment variable if set (by readline)
Feels like it should be faster.
Diffstat (limited to 'util/prosodyctl')
-rw-r--r-- | util/prosodyctl/shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua index ed102d47..442ea2bd 100644 --- a/util/prosodyctl/shell.lua +++ b/util/prosodyctl/shell.lua @@ -30,7 +30,7 @@ local function read_line(prompt_string) 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) |