Skip to content

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

@lingo

Description

@lingo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions