mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #261] [CLOSED] Fixing color setting for tcell. #285
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/261
Author: @mum4k
Created: 11/15/2020
Status: ❌ Closed
Base:
devel← Head:dyc3-tcell-2.x-upgrade-color-fix📝 Commits (5)
4d320e3upgrade tcell to v2.x503c0adFixing color setting fortcell.b4d53c1Removing commented-out code.0efc4a2Updating CHANGELOG.41375b8Translating colors for backward compatibility with termbox-go.📊 Changes
12 files changed (+338 additions, -141 deletions)
View changed files
📝
CHANGELOG.md(+5 -1)📝
cell/color.go(+21 -4)📝
go.mod(+1 -1)📝
go.sum(+2 -0)📝
terminal/tcell/cell_options.go(+23 -17)📝
terminal/tcell/cell_options_test.go(+262 -109)📝
terminal/tcell/event.go(+1 -1)📝
terminal/tcell/event_test.go(+1 -1)📝
terminal/tcell/tcell.go(+2 -2)📝
terminal/tcell/tcell_test.go(+1 -1)📝
terminal/termbox/cell_options.go(+16 -1)📝
terminal/terminalapi/color_mode.go(+3 -3)📄 Description
Our tcell library incorrectly referenced tcell color values rather than
just names. The values aren't part of the public API and did change with
the update to v2.
This commit switches our tcell library to using the public constants
exported by the
tcellproject.Also aligning our color definition of the first 16 colors with
tcelland Xterm. Adding two additional colors to make this change backward
compatible with
termbox-go.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.