Skip to content

Commit 77d6907

Browse files
committed
switch to using golang.org/x/term
For golang/go#31044.
1 parent 21fe95c commit 77d6907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515

1616
"github.com/shurcooL/markdownfmt/markdown"
17-
"golang.org/x/crypto/ssh/terminal"
17+
"golang.org/x/term"
1818
)
1919

2020
var (
@@ -58,7 +58,7 @@ func processFile(filename string, in io.Reader, out io.Writer, stdin bool) error
5858
}
5959

6060
isTerminal := func() bool {
61-
return terminal.IsTerminal(int(os.Stdout.Fd())) && os.Getenv("TERM") != "dumb"
61+
return term.IsTerminal(int(os.Stdout.Fd())) && os.Getenv("TERM") != "dumb"
6262
}
6363
res, err := markdown.Process(filename, src, &markdown.Options{
6464
Terminal: !*list && !*write && !*doDiff && isTerminal(),

0 commit comments

Comments
 (0)