[Bug 304282] New: zypper: progress bar does not redraw properly if window is smaller than text
https://bugzilla.novell.com/show_bug.cgi?id=304282 Summary: zypper: progress bar does not redraw properly if window is smaller than text Product: openSUSE 10.3 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: kkaempf@novell.com ReportedBy: aj@novell.com QAContact: kkaempf@novell.com Found By: --- Try running zypper search/zypper in with a terminal that is smaller than the repository. You will get some interesting effects like the following: $ zypper in gnomebreakpad \ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour- Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour\ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour| Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour/ Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-sour* Reading repository 'http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/' cache - Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-\ Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-| Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-* Reading repository 'http://download.opensuse.org/distribution/SL-Factory-non-oss/inst-source-ext...' cache * Reading installed packages [100%] See how the line is duplicated - instead of overdrawn. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsrain@novell.com AssignedTo|kkaempf@novell.com |jkupec@novell.com QAContact|kkaempf@novell.com |visnov@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvidner@novell.com, dmacvicar@novell.com Status|NEW |ASSIGNED --- Comment #1 from Ján Kupec <jkupec@novell.com> 2007-08-28 07:49:52 MST --- Yes, a known issue. Any hints how to fix it anyone? The CR character does not do its trick when the line is written over multiple console lines. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c2 --- Comment #2 from Stanislav Visnovsky <visnov@novell.com> 2007-09-04 02:01:29 MST --- To use COLUMNS environment variable to limit the size? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c3 --- Comment #3 from Ján Kupec <jkupec@novell.com> 2007-09-04 08:08:06 MST --- Hm. I would cut the output to fit the width only as a last resort... But COLUMNS is a shell variable, and as such is not automatically visible to processes (AFAIK). How to get it into or read it from zypper? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c4 --- Comment #4 from Andreas Jaeger <aj@novell.com> 2007-09-04 11:50:38 MST --- Use e.g.: columns = getenv ("COLUMNS"); for details: man 3 getenv -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c5 --- Comment #5 from Ján Kupec <jkupec@novell.com> 2007-09-04 11:56:52 MST --- Andreas, COLUMNS is not an environment variable. getenv() will not get it, if it wasn't exported before zypper started. And even then, you won't get actual value if you resize your xterm on-the-fly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c6 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com Status|ASSIGNED |NEEDINFO Info Provider| |werner@novell.com --- Comment #6 from Andreas Jaeger <aj@novell.com> 2007-09-04 12:20:07 MST --- Jan, you're right. Let's delete comments 4 and 5 ;-) Werner, can you help us? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c7 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|werner@novell.com | --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2007-09-05 02:52:06 MST --- Simply switch the console into bold mode, e.g. on the prompt one can do this with /suse/werner> tput bold The escape sequence is simple \033[1m for the linux console. This can be done also in a C/C++ program with the help of ncurses, see e.g. manual page attrset(3ncurses) or wattrset(3ncurses), and the macros A_BOLD/WA_BOLD. Beside this ncurses uses well defined terminal settings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282#c8 --- Comment #8 from Martin Vidner <mvidner@novell.com> 2007-09-05 06:39:26 MST --- Thanks Werner :-) mvidner@valkyrie:~$ tput cols 178 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 Stephan Binner <stbinner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Group|novellonly | CC| |stbinner@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=304282#c10 --- Comment #10 from Michael Schröder <mls@novell.com> 2008-04-17 05:09:03 MST --- FYI: The standard way to get the width is: 1) do a TIOCGWINSZ ioctl on fd 1 (this is what the stty command does, see also the tty_ioctl man page). If it succeeds and doesn't return 0 in the ws_col element, you have your width. 2) otherwise check the COLUMNS environment variable. If it is set and not zero, use it. 3) otherwise assume a line length of 80. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=304282#c11 --- Comment #11 from Michael Schröder <mls@novell.com> 2008-04-17 05:10:31 MST --- (As Michael Matz just pointed out: if you're using readline, there's the rl_get_screen_size function) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=304282#c12 --- Comment #12 from Dr. Werner Fink <werner@novell.com> 2008-04-17 05:29:23 MST --- Also using ncurses is usable to get the width/height of the terminal screen called `stdscr' in ncurses. For this the macros found in the manual page getyx(3ncurses) can be used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=304282#c13 --- Comment #13 from Ján Kupec <jkupec@novell.com> 2008-04-17 05:54:22 MST --- Thanx Michaels :O) @Werener: i can imagine curses have lots of usefull stuff for terminal output, but zypper does not need most of them, so it would be a little bit too much to have to depend on ncruses because of few functions... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |Future/Later for Fix| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=304282 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=304282#c14 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sassmann@novell.com --- Comment #14 from Ján Kupec <jkupec@novell.com> 2008-12-11 02:35:15 MST --- *** Bug 458078 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=458078 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com