Open mity opened 4 years ago
I think this is mostly getenv("COLUMNS")
and set a handler for SIGWINCH
?
Actually, so far I never did anything like that. But yes, I think so. For Unix/Posix platforms, at least.
I am also not sure whether tracking SIGWINCH
is worth the added complexity for something of Acutest's nature. Reading $COLUMNS
during initialization might be good enough.
Make the output, especially as generated by the macros
TEST_CHECK()
,TEST_MSG()
andTEST_DUMP()
, automatically adapt to the current terminal size, so that it looks good in a reasonably small terminal window but can use effectively more space if the terminal window is big.This should involve:
test_line_indent__()
.