Skip to content

ansi color code templates fail to bind symbols #9394

Closed
@bluenote10

Description

@bluenote10

The code

import terminal, colors
let code = ansiForegroundColorCode(colAliceBlue)

errors with

../home/fabian/bin/nim-repo/lib/pure/terminal.nim(639, 14) template/generic instantiation from here
../home/fabian/bin/nim-repo/lib/pure/strformat.nim(315, 39) Error: undeclared identifier: 'fgPrefix'

Looking at the source shows that it is probably a consequence of using stformat in a template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions