alacritty

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0a73312c3d8299e4ecad166709694fe9278bffc1
parent 217ad9ec285b4923de1790b0976c8c793039c994
Author: Kyle Rooker <rookerka@gmail.com>
Date:   Wed, 12 Dec 2018 08:12:59 -0600

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.
Diffstat:
MCHANGELOG.md | 6++++++
Malacritty.info | 4++--
2 files changed, 8 insertions(+), 2 deletions(-)

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