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.
This commit is contained in:
Kyle Rooker 2018-12-12 08:12:59 -06:00 committed by Christian Duerr
parent 217ad9ec28
commit 0a73312c3d
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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,