• Jordan Galby's avatar
    Disable word-wrapping when output is not a terminal · a6491a9e
    Jordan Galby authored
    Issue:
    
    When redirecting nvidia-settings output to a file or a pipe (for simple
    recording, or scripting purposes), we don't want the output to change
    depending on the current terminal width (TIOCGWINSZ).
    
    Fix/Feature:
    
    This change disables word-wrapping of `nv_msg`/`nv_*_msg` functions when
    the output stream is not a terminal (not `isatty`).
    
    PRE-Merge Build Fix from Liam Middlebrook <lmiddlebrook@nvidia.com>:
        Add _GNU_SOURCE define for fileno
    a6491a9e
Name
Last commit
Last update
doc Loading commit data...
samples Loading commit data...
src Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
utils.mk Loading commit data...
version.mk Loading commit data...