mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Fix for issue 2 in #1484
Exit message when exiting terminal now isnt visibile in other views
This commit is contained in:
@@ -2,8 +2,6 @@ package shell
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -115,7 +113,8 @@ func (t *Terminal) Start(execCmd []string, getOutput bool, wait bool, callback s
|
|||||||
for {
|
for {
|
||||||
err := Term.Parse()
|
err := Term.Parse()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintln(os.Stderr, "[Press enter to close]")
|
Term.Write([]byte("Press enter to close"))
|
||||||
|
screen.Redraw()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
screen.Redraw()
|
screen.Redraw()
|
||||||
|
|||||||
Reference in New Issue
Block a user