Bug 447720

Summary: Update packaging log doesn't decode ANSI colours as introduced by Garuda Linux
Product: [Applications] Discover Reporter: Magnus Anderson <todamath>
Component: UpdatesAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CONFIRMED ---    
Severity: minor CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.23.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Magnus Anderson 2021-12-31 06:56:17 UTC
SUMMARY
***
When displaying escape sequences, it looks like `□[431;Some Text□[42;` instead of displaying text in color (I'm going off memory here for what the numbers are, as I don't actually know how to force discover to open the terminal)
***


STEPS TO REPRODUCE
I'm actually not sure what the best way to do this is. I noticed the problem because Garuda Linux prints any `.pacnew` files you have in color to get you to notice it.
1. ???
2. Get Discover's terminal to print color
3. It doesn't

EXPECTED RESULT
Prints color according to which escape sequence is seen

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 1 Aleix Pol 2022-01-03 02:58:57 UTC
It's not an integrated terminal, we are reading /var/log/pacman.log. I find it quite odd that there's ANSI color codes in files...

I guess we could drop them or just find another way to go about it...