Skip to content

Commit

Permalink
Don't show a "Done running" box when a program is done running
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jan 30, 2025
1 parent d0db58c commit 62504d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions v2/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1284,10 +1284,9 @@ func (e *Editor) Build(c *vt100.Canvas, status *StatusBar, tty *vt100.TTY) {
}

// Clear the "Done building. Running..." box
const repositionCursorAfterDrawing = true
const rightHandSide = true
const msg = " Done running "
e.DrawOutput(c, 20, "", msg, e.NanoHelpBackground, repositionCursorAfterDrawing, rightHandSide)
const drawLines = true
const shouldHighlightCurrentLine = false
e.FullResetRedraw(c, status, drawLines, shouldHighlightCurrentLine)

title := "Program output"
n := 25
Expand All @@ -1312,6 +1311,7 @@ func (e *Editor) Build(c *vt100.Canvas, status *StatusBar, tty *vt100.TTY) {
}
if strings.TrimSpace(output) != "" {
const rightHandSide = false
const repositionCursorAfterDrawing = true
e.DrawOutput(c, n, title, output, boxBackgroundColor, repositionCursorAfterDrawing, rightHandSide)
} else {
e.FullResetRedraw(c, status, true, false)
Expand Down

0 comments on commit 62504d0

Please sign in to comment.