Am 31.05.2013 14:28, schrieb Janus Weil:
Wouldn't it work to use the TIOCGWINSZ ioctl only if isatty() reports that we're outputting to a terminal?Good point. Updated patch attached, which imposes no limit if we're not outputting to a terminal (as suggested by Mikael). Ok for trunk, or am I missing anything else? (Testing welcome ...)
needs "#include <unistd.h>" for isatty(), perhaps. Otherwise looks sane at first glance. Cheers, Manfred
Cheers, Janus