> 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 ...) Cheers, Janus
terminal_width_v2.diff
Description: Binary data