diff options
author | Kim Alvefur <zash@zash.se> | 2022-05-30 15:28:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-05-30 15:28:44 +0200 |
commit | 0267554c8e91555c658241861943b684e5f98000 (patch) | |
tree | 127691690d685c02e51df0fc6dde4e0e20ed1621 /util/prosodyctl/shell.lua | |
parent | 553620127a0a5edc437d8a1c970ca0cb13ab98ec (diff) | |
download | prosody-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/shell.lua')
-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 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) |