-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ANSI OSC color palette support (#566)
* Refactor vga palette code * Add osc dispatch to handle ansi palette * Add warning macro * Deprecate vga set palette command * Add shell script to set palettes * Remove TODO * Add new TODO comments * Add reset sequence * Add cursor edge checks
- Loading branch information
Showing
7 changed files
with
91 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
print "\e]P0282828\e[1A" # Black | ||
print "\e]P1458588\e[1A" # Blue | ||
print "\e]P298971A\e[1A" # Green | ||
print "\e]P3689D6A\e[1A" # Cyan | ||
print "\e]P4CC241D\e[1A" # Red | ||
print "\e]P5B16286\e[1A" # Magenta | ||
print "\e]P6D79921\e[1A" # Brown (Dark Yellow) | ||
print "\e]P7EBDBB2\e[1A" # Light Gray | ||
print "\e]P8A89984\e[1A" # Dark Gray (Gray) | ||
print "\e]P983a598\e[1A" # Light Blue | ||
print "\e]PAB8BB26\e[1A" # Light Green | ||
print "\e]PB8EC07C\e[1A" # Light Cyan | ||
print "\e]PCFB4934\e[1A" # Light Red | ||
print "\e]PDD3869B\e[1A" # Pink (Light Magenta) | ||
print "\e]PEFABD2F\e[1A" # Yellow (Light Yellow) | ||
print "\e]PFFBF1C7\e[1A" # White |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
print "\e]P0FBF1C7\e[1A" # Black | ||
print "\e]P1458588\e[1A" # Blue | ||
print "\e]P298971A\e[1A" # Green | ||
print "\e]P3689D6A\e[1A" # Cyan | ||
print "\e]P4CC241D\e[1A" # Red | ||
print "\e]P5B16286\e[1A" # Magenta | ||
print "\e]P6D79921\e[1A" # Brown (Dark Yellow) | ||
print "\e]P73C3836\e[1A" # Light Gray | ||
print "\e]P87C6F64\e[1A" # Dark Gray (Gray) | ||
print "\e]P9076678\e[1A" # Light Blue | ||
print "\e]PA79740E\e[1A" # Light Green | ||
print "\e]PB427B58\e[1A" # Light Cyan | ||
print "\e]PC9D0006\e[1A" # Light Red | ||
print "\e]PD8F3F71\e[1A" # Pink (Light Magenta) | ||
print "\e]PEB57614\e[1A" # Yellow (Light Yellow) | ||
print "\e]PF282828\e[1A" # White |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters