Skip to content

True color escape sequences are even more complicated #951

Description

@cgull

It's recently been discovered that everybody's been implementing true-color escape sequences with colons wrong, it seems.

People have been implementing ESC [38:2:0:255:0m, but it should apparently be ESC [38:2:<colorspace>:0:255:0m, according to https://bugzilla.gnome.org/show_bug.cgi?id=791456 and https://gitlab.com/gnachman/iterm2/issues/6377. libvte and iTerm2 have both added support for this new, correct variant.

Currently this is an academic point because Mosh only implements the semicolon variant, and I don't think anybody has any desire to change that variant's behavior for compatibility reasons. But when we do parse the colon variant, we should probably handle the old, mistaken variant as well as this new variant.

Thanks to George Nachman's ITerm2 release notes for pointing this out and catching my eye.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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