Skip to content

Support ANSI colours in output window #12

@apgrucza

Description

@apgrucza

Text in the output window should appear coloured if the task outputs ANSI escape codes that set the text colour.

For example:

tasks:
  colour:
    cmds:
      - echo -e "Add {{.RED}}new{{.NC}} feature"
    vars:
      RED: \033[1;31m
      NC: \033[0m

When this task is run via the extension, the text in the output window should appear as:

Add new feature

instead of:

Add �[1;31mnew�[0m feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: outputChanges related to the vscode output window and terminal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions