aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-30 15:28:44 +0200
committerKim Alvefur <zash@zash.se>2022-05-30 15:28:44 +0200
commit0267554c8e91555c658241861943b684e5f98000 (patch)
tree127691690d685c02e51df0fc6dde4e0e20ed1621 /util/prosodyctl
parent553620127a0a5edc437d8a1c970ca0cb13ab98ec (diff)
downloadprosody-0267554c8e91555c658241861943b684e5f98000.tar.gz
prosody-0267554c8e91555c658241861943b684e5f98000.zip
prosodyctl shell: Communicate width of terminal to mod_admin_shell
This lets it adjust the width of tables to the actual terminal width.
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index 0b1dd3f9..cad9ac00 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -27,7 +27,7 @@ local function read_line(prompt_string)
end
local function send_line(client, line)
- client.send(st.stanza("repl-input"):text(line));
+ client.send(st.stanza("repl-input", { width = os.getenv "COLUMNS" }):text(line));
end
local function repl(client)