Add support for ANSI OSC setting theme colors

Open
#3,108 3 comments 17 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

The issue provides no file or test names; begin by locating Warp's handling of ANSI escape sequences and OSC commands. Reproduce the provided OSC 11 command, then verify that an accepted theme-color sequence changes the terminal background as requested.

Written by the indexing model from the issue text.

Description

enhancement triaged
Discord username (optional)

No response

Describe the solution you'd like?
I'd like to have the ability to change terminal background colour via ANSI escape codes.
Is your feature request related to a problem? Please describe.
My SSH config is such, that it runs a local command upon connect. That command is a script that changes the terminal background colour based on the remote server I'm connecting to (reddish background for customer production hosts, green for not-so-critical ones, etc.).

This works fine in iTerm & WezTerm, but when I run the same background changing commands on Warp, nothing happens. Here's an `echo` I've tried.

$ echo -ne "\033]11;#53186f\007"

Background should change into purple.



### Additional context

_No response_

### How important is this feature to you?

5 (Can't work without it!)

### Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.