Results 1 to 3 of 3

Thread: pydf - adding strange characters to redirected output

  1. #1
    Join Date
    Aug 2012
    Beans
    120

    pydf - adding strange characters to redirected output

    18.04.3 LTS
    pydf output shows correctly on terminal or piped to a text file viewed via cat. Output redirected to printer or printed from text file is showing "33m" at beginning and end of title line and "0m" at beginning and end of detail lines. It's not serious, just annoying. Is there a way to clean it up
    Thanks

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,531
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: pydf - adding strange characters to redirected output

    Those characters are part of escape sequences to change the colour of text in the terminal. These escape sequences are not interpreted by the printer. Use the following to disable colour switching.
    Code:
    pydf --bw

  3. #3
    Join Date
    Aug 2012
    Beans
    120

    Re: pydf - adding strange characters to redirected output

    perfect - thank you
    Frank

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •