Package: colorized-logs
Version: 2.6-1

Some programs are very confused about the terminal width when run under pipetty, e.g.:

  $ gallery-dl --help | head
  usage: gallery-dl [OPTION]... URL...

  General Options:
    -h, --help                Print this help message and exit
    --version                 Print program version and exit
    -d, --dest DEST           Destination directory
    -i, --input-file FILE     Download URLs found in FILE ('-' for stdin). More
                              than one --input-file can be specified
    --cookies FILE            File to load additional cookies from
    --proxy URL               Use the specified proxy

  $ pipetty gallery-dl --help | head
  usage: gallery-dl [OPTION]... URL...

  General Options:
    -h, --help
      Print this
      help
      message and
      exit
    --version
      Print

Apparently this is because pipetty never sets windows size, so the size is reported as 0:

  $ strace -f -o '|grep -w TIOCGWINSZ >&2' pipetty gallery-dl --help >/dev/null
  9222  ioctl(1, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
  9222  ioctl(1, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0


-- System Information:
Architecture: i386

Versions of packages colorized-logs depends on:
ii  libc6  2.32-4
ii  less   551-2

--
Jakub Wilk

Reply via email to