summaryrefslogtreecommitdiff
path: root/ui/draw_utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/draw_utils.go')
-rw-r--r--ui/draw_utils.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/draw_utils.go b/ui/draw_utils.go
index 947e71b..45e81db 100644
--- a/ui/draw_utils.go
+++ b/ui/draw_utils.go
@@ -53,3 +53,17 @@ func printTime(screen tcell.Screen, x int, y int, st tcell.Style, t time.Time) {
screen.SetContent(x+3, y, mn0, nil, st)
screen.SetContent(x+4, y, mn1, nil, st)
}
+
+func clearArea(screen tcell.Screen, x0, y0, width, height int) {
+ for x := x0; x < x0+width; x++ {
+ for y := y0; y < y0+height; y++ {
+ screen.SetContent(x, y, ' ', nil, tcell.StyleDefault)
+ }
+ }
+}
+
+func drawVerticalLine(screen tcell.Screen, x, y0, height int) {
+ for y := y0; y < y0+height; y++ {
+ screen.SetContent(x, y, 0x2502, nil, tcell.StyleDefault)
+ }
+}