1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00

Sirupsen -> sirupsen

This commit is contained in:
Dawid Dziurla
2018-08-23 14:22:03 +02:00
parent 2cdd439286
commit bcbeec1a56
25 changed files with 9 additions and 9 deletions

View File

@ -0,0 +1,19 @@
// +build !appengine,!gopherjs
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
default:
return false
}
}