mirror of
https://github.com/rclone/rclone.git
synced 2025-12-18 09:13:15 +00:00
vendor: update termbox-go to fix ncdu command on FreeBSD
see 58d4fcbce2
This commit is contained in:
committed by
Nick Craig-Wood
parent
e0d41da3e3
commit
3801b8109e
19
vendor/github.com/nsf/termbox-go/api.go
generated
vendored
19
vendor/github.com/nsf/termbox-go/api.go
generated
vendored
@@ -2,13 +2,16 @@
|
||||
|
||||
package termbox
|
||||
|
||||
import "github.com/mattn/go-runewidth"
|
||||
import "fmt"
|
||||
import "os"
|
||||
import "os/signal"
|
||||
import "syscall"
|
||||
import "runtime"
|
||||
import "time"
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"runtime"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
||||
// public API
|
||||
|
||||
@@ -24,7 +27,7 @@ import "time"
|
||||
func Init() error {
|
||||
var err error
|
||||
|
||||
if runtime.GOOS == "openbsd" {
|
||||
if runtime.GOOS == "openbsd" || runtime.GOOS == "freebsd" {
|
||||
out, err = os.OpenFile("/dev/tty", os.O_RDWR, 0)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user