> The ioctl() can be assumed to be present on all systems, but in case > TIOCGWINSZ doesn't exist, we fall back to the fixed value. This is the > best of both worlds. >
I like your solution, but I think COLUMNS should have a bigger priority, because in this case user can define a different value of the current width. Regards,