summaryrefslogtreecommitdiff
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
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 (