Skip to content

256-color SGR 'Select foreground color' code results in unreadable blinking text #37

@marshray

Description

@marshray

256-color mode ANSI sequences [wikipedia] take the form:

  • \\u001b[38;5; n ;m    Select foreground color
  • \\u001b[48;5; n ;m    Select background color

This extension does not recognize that SGR codes 38 and 48 consume the next two (or four) numbers in the sequence and instead interprets them as codes. So in the 'Select foreground color' sequence (above), the number 5 is erroneously interpreted as SGR code 5 'Slow blink'.

The 24 bit color sequences are likely problematic too:

  • \\u001b[38;2; r ; g ; b ;m    Select RGB foreground color
  • \\u001b[48;2; r ; g ; b ;m    Select RGB background color

Thanks!

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