[Bug 1205090] New: --no-color argument does not completely remove ANSI codes from the output of Zypper
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 Bug ID: 1205090 Summary: --no-color argument does not completely remove ANSI codes from the output of Zypper Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Maintenance Assignee: maintenance@opensuse.org Reporter: dobiwad221@hoxds.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Passing --no-color option removes colors but leaves some ANSI codes in the output. They should be completely removed as the intent of passing --no-color is clear: no extra characters should appear in the output. Example with --no-color: Retrieving: desktop-translations-84.87.20220427.80cb897f-150400.1.3.noarch.rpm ........<22%>==================================================[\\ (1018.4 KiB/s)]���[2K ���[2K -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Maintenance |libzypp Assignee|maintenance@opensuse.org |zypp-maintainers@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 http://bugzilla.opensuse.org/show_bug.cgi?id=1205090#c1 Luciano Santos <luc14n0@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luc14n0@opensuse.org Found By|--- |Community User --- Comment #1 from Luciano Santos <luc14n0@opensuse.org> --- Hi Dobi, are you really using Leap 42.3? -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 http://bugzilla.opensuse.org/show_bug.cgi?id=1205090#c2 --- Comment #2 from Dobi Wadzzi <dobiwad221@hoxds.com> --- Using OpenSUSE 15.4. Bugzilla menus are too confusing. I left them at default values. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 http://bugzilla.opensuse.org/show_bug.cgi?id=1205090#c3 Luciano Santos <luc14n0@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Leap 42.3 |Leap 15.4 --- Comment #3 from Luciano Santos <luc14n0@opensuse.org> --- OK, changing to Leap 15.4 then. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1205090 http://bugzilla.opensuse.org/show_bug.cgi?id=1205090#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #4 from Michael Andres <ma@suse.com> --- (In reply to Dobi Wadzzi from comment #0)
Passing --no-color option removes colors but leaves some ANSI codes in the output. They should be completely removed as the intent of passing --no-color is clear: no extra characters should appear in the output.
Sorry, but 'No'. The intent of --no-color is solely not to use ANSI color sequences. Cursor movement and line clearing is used if stdout is a (not dumb) tty. These forms should emit no ANSI codes at all: zypper ... | cat zypper ... > outputfile TERM=dumb zypper ... We'll update the man page to point this out more clearly. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com