[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] tests: use tput to get the number of columns
From: |
Akim Demaille |
Subject: |
[PATCH 2/8] tests: use tput to get the number of columns |
Date: |
Wed, 2 Oct 2019 08:22:13 +0200 |
* tests/bison.in: here.
---
tests/bison.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/bison.in b/tests/bison.in
index ef623a66..31087f2b 100644
--- a/tests/bison.in
+++ b/tests/bison.in
@@ -37,7 +37,7 @@ fi
# We redirect stderr, which breaks the computation of the terminal
# screen width. So export COLUMNS to Bison, hoping for the shell to
# have defined it.
-: ${COLUMNS=132}
+: ${COLUMNS=`tput cols || echo 132`}
export COLUMNS
$PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
status=$?
--
2.23.0
- [PATCH 0/8] RFC: diagnostics: add suggestions, Akim Demaille, 2019/10/02
- [PATCH 1/8] TODO: update, Akim Demaille, 2019/10/02
- [PATCH 2/8] tests: use tput to get the number of columns,
Akim Demaille <=
- [PATCH 3/8] diagnostics: isolate caret_set_file, Akim Demaille, 2019/10/02
- [PATCH 4/8] diagnostics: isolate caret_set_column, Akim Demaille, 2019/10/02
- [PATCH 5/8] diagnostics: display suggested update after the caret-info, Akim Demaille, 2019/10/02
- [PATCH 7/8] style: isolate complain_symbol_undeclared, Akim Demaille, 2019/10/02
- [PATCH 6/8] style: simplify the handling of symbol and semantic_type tables, Akim Demaille, 2019/10/02
- [PATCH 8/8] diagnostics: suggest fixes for undeclared symbols, Akim Demaille, 2019/10/02