Re: yum list display some package in 2 rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il giorno sab, 31/01/2009 alle 21.09 +0000, g ha scritto:
hmmm
I can't understand...
Why I have to set someting in terminals if I want to run the command as
a script.

> what size are your 'xterms'?
> [i have konsole set to open 80 x 25, right/left click to resize as needed]
So...
My monitor is 1900x800
My konsole is set to be 196x40

> if you are using a smaller monitor, consider changing display size,
> and konsole, to give you higher character.
I think the problem isn't on the monitor.
The problem is that the output is not everytime the same. And I can't
understand what is the logic for yum to choose what is the line size.

If I send output to a file, the row size is everytime 80 char, but this
is not a good choise.

I found this on the output.py

def _term_width():
    """ Simple terminal width, limit to 20 chars. and make 0 == 80. """
    if not hasattr(urlgrabber.progress, 'terminal_width_cached'):
        return 80
    ret = urlgrabber.progress.terminal_width_cached()
    if ret == 0:
        return 80
    if ret < 20:
        return 20
    return ret

I can't imagine why the limit should be set to 20 or to 80.
I don't know how to change it, but I think that if output is sent to
nonterminal devices, (like files or pipe for examples), the row limit as
to be set to infinite.

I will try to tell to yum developer.
Bye
 Ambrogio

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux