From e6ad01fb90df7e324068f61ae96e056f327959c7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 1 Oct 2025 00:00:54 +0900 Subject: Revise color configuration --- src/tui/tcell.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/tui/tcell.go') diff --git a/src/tui/tcell.go b/src/tui/tcell.go index e4a6a988..f7c6884f 100644 --- a/src/tui/tcell.go +++ b/src/tui/tcell.go @@ -36,8 +36,6 @@ func (p ColorPair) style() tcell.Style { return style.Foreground(asTcellColor(p.Fg())).Background(asTcellColor(p.Bg())) } -type Attr int32 - type TcellWindow struct { color bool windowType WindowType @@ -98,14 +96,6 @@ const ( Italic = Attr(tcell.AttrItalic) ) -const ( - AttrUndefined = Attr(0) - AttrRegular = Attr(1 << 7) - AttrClear = Attr(1 << 8) - BoldForce = Attr(1 << 10) - FullBg = Attr(1 << 11) -) - func (r *FullscreenRenderer) Bell() { _screen.Beep() } @@ -159,15 +149,6 @@ func (c Color) Style() tcell.Color { } } -func (a Attr) Merge(b Attr) Attr { - if b&AttrRegular > 0 { - // Only keep bold attribute set by the system - return (b &^ AttrRegular) | (a & BoldForce) - } - - return (a &^ AttrRegular) | b -} - // handle the following as private members of FullscreenRenderer instance // they are declared here to prevent introducing tcell library in non-windows builds var ( -- cgit v1.2.3