summaryrefslogtreecommitdiff
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-10-01 00:00:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-10-09 00:17:00 +0900
commite6ad01fb90df7e324068f61ae96e056f327959c7 (patch)
tree6c909ebfc490bf216f12449b9b3062ee963e7085 /src/tui/tcell.go
parentce2200e9080d84a0e658fd1523f4fac619b58da4 (diff)
downloadfzf-e6ad01fb90df7e324068f61ae96e056f327959c7.tar.gz
Revise color configuration
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r--src/tui/tcell.go19
1 files changed, 0 insertions, 19 deletions
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 (