Skip to content

Add support for color changing escape sequences #2038

Closed
@dylanaraps

Description

@dylanaraps
  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Arch Linux
  • Hyper.app version: 1.3.3
  • Link of a Gist with the contents of your .hyper.js: No changes made to default config. (N/A)
  • Relevant information from devtools: N/A
  • The issue is reproducible in vanilla Hyper.app: Yes

Issue

These escape sequences manipulate the open terminal's colorscheme and allow you to change your terminal's colorscheme on the fly. These escape sequences are supported by all of the terminal emulators I've tried with the exception of konsole which ignores them.

Two of my projects use these escape sequences for their main purpose and they currently don't work in Alacritty since the sequences aren't yet supported.

I fully understand if you don't want to implement this feature, there are a lot of really weird escape sequences in the Xterm/Rxvt specs and I understand that you want to keep Hyper simple. ^^

The sequences are as follows:

# Manipulate colors 0-256
# \033]4;{index};{color}\007

# Change color 7 to #FFFFFF
\033]4;7;#FFFFFF\007

# Change color 14 to #333333
\033]4;14;#333333\007

# Manipulate special colors.
# 10 = foreground, 11 = background, 12 = cursor foregound
# 13 = mouse foreground, 708 = terminal border background
# \033]{index};{color}\007

# Change the terminal foreground to #FFFFFF
\033]10;#FFFFFF\007

# Change the terminal background to #000000
\033]11;#000000\007

# Change the terminal cursor to #FFFFFF
\033]12;#FFFFFF\007

# Change the terminal border background to #000000
\033]708;#000000\007

Source:

More information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 Type: BugIssue pertains to something wrong within Hyper👆 Is UpstreamIssue is the fault of something Hyper uses and not Hyper itself🛠 Type: Feature RequestIssue or PR is a feature request/proposal for Hyper

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions