mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-21 15:08:15 +00:00
diagnostics: get the screen width from the terminal
* bootstrap.conf: We need winsz-ioctl and winsz-termios. * src/location.c (columns): Use winsize to get the number of columns. Code taken from the GNU Coreutils. * src/location.h, src/location.c (caret_init): New. * src/complain.c (complain_init): Call it. * tests/bison.in: Export COLUMNS so that users of tests/bison can enjoy proper line truncation.
This commit is contained in:
1 parent
5f45cb05f1
commit
67bff62e31
6 files changed
+54
-10
No files matched your search
@@ -202,3 +202,5 @@
|
||||
/xalloc.m4
|
||||
/xsize.m4
|
||||
/xstrndup.m4
|
||||
/jm-winsz1.m4
|
||||
/jm-winsz2.m4
|
||||
Reference in new issue
Block a user