summaryrefslogtreecommitdiffstats
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r--src/tui/tcell.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go
index 0c3d4694..54feaf16 100644
--- a/src/tui/tcell.go
+++ b/src/tui/tcell.go
@@ -203,6 +203,11 @@ func (r *FullscreenRenderer) Refresh() {
// noop
}
+func (r *FullscreenRenderer) Size() (termSize, error) {
+ cols, lines := _screen.Size()
+ return termSize{lines, cols, 0, 0}, error("Not implemented")
+}
+
func (r *FullscreenRenderer) GetChar() Event {
ev := _screen.PollEvent()
switch ev := ev.(type) {
@@ -541,6 +546,7 @@ func fill(x, y, w, h int, n ColorPair, r rune) {
}
func (w *TcellWindow) Erase() {
+ w.drawBorder(false)
fill(w.left-1, w.top, w.width+1, w.height-1, w.normal, ' ')
}
@@ -692,6 +698,10 @@ func (w *TcellWindow) CFill(fg Color, bg Color, a Attr, str string) FillReturn {
return w.fillString(str, NewColorPair(fg, bg, a))
}
+func (w *TcellWindow) DrawBorder() {
+ w.drawBorder(false)
+}
+
func (w *TcellWindow) DrawHBorder() {
w.drawBorder(true)
}