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
parent 13046:4c3dc767fb11
child 13050: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)