aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Rooker <rookerka@gmail.com>2018-12-12 08:12:59 -0600
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-12 14:12:59 +0000
commit0a73312c3d8299e4ecad166709694fe9278bffc1 (patch)
treedb0cfd08f3d1219dcc92c1ccb06be4493685bc90
parent217ad9ec285b4923de1790b0976c8c793039c994 (diff)
downloadr-alacritty-0a73312c3d8299e4ecad166709694fe9278bffc1.tar.gz
r-alacritty-0a73312c3d8299e4ecad166709694fe9278bffc1.tar.bz2
r-alacritty-0a73312c3d8299e4ecad166709694fe9278bffc1.zip
Fix color issues in ncurses programs
Certain programs like `htop` have problems with the number of color pairs which are specified by the Alacritty terminfo file. By reducing the maximum number of color pairs to the value which is specified by xterm-256color, these issues are resolved. This fixes #1862.
-rw-r--r--CHANGELOG.md6
-rw-r--r--alacritty.info4
2 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3a27cc8a..a8f44a52 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [Unreleased]
+
+### Fixed
+
+- Fix color issue in ncurses programs by updating terminfo pairs from 0x10000 to 0x7FFF
+
## Version 0.2.4
### Added
diff --git a/alacritty.info b/alacritty.info
index 8f65e430..39fe82cc 100644
--- a/alacritty.info
+++ b/alacritty.info
@@ -2,7 +2,7 @@ alacritty|alacritty terminal emulator,
use=alacritty+common,
rs1=\Ec\E]104\007,
ccc,
- colors#0x100, pairs#0x10000,
+ colors#0x100, pairs#0x7FFF,
initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*
%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
oc=\E]104\007,
@@ -15,7 +15,7 @@ alacritty|alacritty terminal emulator,
alacritty-direct|alacritty with direct color indexing,
use=alacritty+common,
RGB,
- colors#0x1000000, pairs#0x10000,
+ colors#0x1000000, pairs#0x7FFF,
initc@, op=\E[39;49m,
setab=\E[%?%p1%{8}%<%t4%p1%d%e48;2;%p1%{65536}%/%d;%p1%{256}
%/%{255}%&%d;%p1%{255}%&%d%;m,