Skip to content

Commit 319d609

Browse files
author
Zaq? Wiedmann
committed
Merge branch 'master' of github.com:zaquestion/lab
2 parents cf622fe + c2d660c commit 319d609

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ func textToMarkdown(text string) string {
330330
// to avoid some markdown rendering garbage going to other outputs that
331331
// don't support some control chars.
332332
func isOutputTerminal() bool {
333-
if !terminal.IsTerminal(syscall.Stdout) || !terminal.IsTerminal(syscall.Stderr) {
333+
if !terminal.IsTerminal(int(syscall.Stdout)) ||
334+
!terminal.IsTerminal(int(syscall.Stderr)) {
334335
return false
335336
}
336337
return true

0 commit comments

Comments
 (0)