Search code examples
formattingzenitymediainfo

Formatting piped text in zenity


I'm trying to show some mediainfo output in a Zenity dialog, using

mediainfo 00000.MTS | zenity --text-info
and here's there result. As the image shows, the text is badly formatted because of spaces, while it shows just right in terminal.

Can I change this? Also, is it possible to format particular strings of text (e.g: the "General" and "Video" headers)?


Solution

  • the text is badly formatted because of spaces, while it shows just right in terminal. Can I change this?

    Yes, just change the font to one that is monospaced:

    mediainfo 00000.MTS | zenity --text-info --font='DejaVu Sans Mono'
    

    is it possible to format particular strings of text

    No, this is not possible with --text-info.