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
commit27696b976485f989d664f330e9c328de93e8e672 (patch)
tree3fd2fe38e90e78d782e6f65cc726de8c54fa7c18 /bash.go
parentdbd81e9462846f716ba4cebe383d2215e01ce563 (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)
}
}