ascii: Correct multiple bugs regarding output width.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 9 Jan 2020 07:22:05 +0000 (07:22 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 9 Jan 2020 07:25:48 +0000 (07:25 +0000)
commit1e8aa549d8b7b19f814bbb08995aedb6a96630f6
tree38ec70b109c7a24dc1de8d3887476021fa31b8ea
parentb2b06e8496c000431a28acb82fe87e1f8954e04f
ascii: Correct multiple bugs regarding output width.

The SET WIDTH setting was ignored.  This makes the code honor it for
output to a file.  For output to a terminal, the terminal's width is
used instead.

Honor changes to SET WIDTH as well.

The code to detect terminal size changes wasn't properly signal safe,
and it was scattered across multiple files.  This centralizes it and
makes it signal safe.

There were bugs in updates to min_hbreak in corner cases.  This fixes
them.

Thanks to Frans Houweling and John Darrington for reporting these
bugs.
doc/invoking.texi
src/output/ascii.c
src/ui/terminal/automake.mk
src/ui/terminal/main.c
src/ui/terminal/terminal-reader.c
src/ui/terminal/terminal.c [deleted file]
src/ui/terminal/terminal.h [deleted file]