p-e-w / argos

Create GNOME Shell extensions in seconds
https://extensions.gnome.org/extension/1176/argos/
1.66k stars 112 forks source link

ANSI colors not showing (when escape is first character on line) #163

Open lingo opened 1 week ago

lingo commented 1 week ago

Given this script

#!/bin/bash

echo -e "Testing ansi\n---"

echo -e "\e[36mFirst char is escape, color doesn't work | ansi=true emojize=false unescape=false trim=false useMarkup=false"
echo -e "\e\e[36mDouble esc char renders strangely | ansi=true emojize=false unescape=false trim=false useMarkup=false"
echo -e " \e[36ma space as first char; works| ansi=true emojize=false unescape=false trim=false useMarkup=false"
echo -e "​\e[36ma zero-width space as first char; works | ansi=true emojize=false unescape=false trim=false useMarkup=false"

I get the following results on Gnome Shell 42.9 with Argos master branch (I changed metadata.json to allow this to run on my Gnome version)

image

If this is a problem with my Gnome version, I understand it's not supported. However, I thought I'd report this in case it's a bug in Argos ANSI handling.