commit 029882f55b8c5fa23ddcf5de8dea9a3930e9c568
parent 400f615a44fc0a7516c8c92c5756914854011a70
Author: dwrz <dwrz@dwrz.net>
Date: Fri, 23 Dec 2022 19:51:08 +0000
Remove minotaur redundant terminal control
Diffstat:
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/pkg/minotaur/maze/maze.go b/pkg/minotaur/maze/maze.go
@@ -101,7 +101,6 @@ type RenderParameters struct {
func (m *Maze) Render(p RenderParameters) []byte {
var buf bytes.Buffer
- buf.WriteString(terminal.CursorHide)
buf.WriteString(terminal.CursorTopLeft)
// Print the top wall.
diff --git a/pkg/minotaur/minotaur.go b/pkg/minotaur/minotaur.go
@@ -104,7 +104,6 @@ func (g *Game) Run(ctx context.Context) error {
// TODO: refactor to use a terminal output package.
g.out.WriteString(terminal.ClearScreen)
- g.out.WriteString(terminal.CursorTopLeft)
g.out.WriteString(terminal.CursorHide)
g.render()