From 9760019a25dbbb6e04d4ee1ee1366ea14fc0472e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 7 Apr 2023 13:42:20 +0200 Subject: util.human.io: Prefer using the $COLUMNS environment variable if set (by readline) Feels like it should be faster. --- util/prosodyctl/shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/prosodyctl/shell.lua') 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) -- cgit v1.2.3