Re: Yum output and term size

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
pirla <[email protected]> writes:

> Hi all,
>
> I have a little question that I would like to understand.
>
> How yum chose the row size for the output of the command.
>
> I see that if I send output to a file or to a pipe, the size is set to
> 80 char, even if the terminal has more columns.
> This is a problem when package names are long because the row is divided
> into 2 rows, so script or parsing is very hard.

 Screen scraping is unsupported, you probably want to look at:

http://yum.baseurl.org/wiki/YumCodeSnippets

...specifically the snippets for list and/or search.

-- 
James Antill -- [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.