View Single Post
Old 04-13-12, 10:57 AM   #12
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: Interesting observation with nvidia-settings and stderr redirection

Like Plagman says, you can easily change the default width to anything you want: see DEFAULT_MAX_WIDTH in src/msg.c. I think that defaulting to < 80 characters and defaulting to INT_MAX are both reasonable, for different reasons. Redirecting std{err,out} is a pretty common use case and when doing so, I imagine that we can often expect that the file descriptors won't be associated with any terminal, which might tip the scales slightly in the favor of INT_MAX.
danix is offline   Reply With Quote