From a1006065c33cc73d519710757f1f64e757d93445 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Tue, 10 Dec 2024 19:58:48 +0100 Subject: [PATCH] Get wrap width from terminal --- bin/test-remote-access.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/test-remote-access.php b/bin/test-remote-access.php index 041af38f808..9bf9297945d 100644 --- a/bin/test-remote-access.php +++ b/bin/test-remote-access.php @@ -1,8 +1,10 @@ /dev/null'))) ?: 80); + function say($msg) { - echo wordwrap("{$msg}\n"); + echo wordwrap("{$msg}\n", constant('COL_WIDTH')); } function error($msg, $exitcode = 1)