stdout may differ from stdin so it should be used to determine the column width, especially since it is the target file descriptor.