summaryrefslogtreecommitdiff
path: root/bash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
committerJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
commita33eca708a44bb8b9af1790413d56236dc504295 (patch)
treee5a629088b5b5b92219ccd6b8b2365118f4a897b /bash.go
parent7317b3d124c2c75423d8a7311ceec3c12ec71dd3 (diff)
gocui mode works again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bash.go')
-rw-r--r--bash.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/bash.go b/bash.go
index 2f4b8ca..5e63e5f 100644
--- a/bash.go
+++ b/bash.go
@@ -2,6 +2,7 @@ package main
import (
"io"
+ "log"
"os"
"os/exec"
"os/signal"
@@ -29,7 +30,7 @@ func test() error {
go func() {
for range ch {
if err := pty.InheritSize(os.Stdin, ptmx); err != nil {
- log("error resizing pty: %s", err)
+ log.Println("error resizing pty: %s", err)
}
}
}()
@@ -53,7 +54,7 @@ func test() error {
func mainBash() {
if err := test(); err != nil {
- log(logError, "exit in mainBash()")
+ log.Println(logError, "exit in mainBash()")
exit(err)
}
}