blob: b4ef5286cd472d46a7ee56fa80faa0f89f2ed52c [file] [log] [blame]
khenaidoo59ce9dd2019-11-11 13:05:32 -05001// +build !appengine,!js,windows
2
3package logrus
4
5import (
6 "io"
7 "os"
8 "syscall"
9
10 sequences "github.com/konsorten/go-windows-terminal-sequences"
11)
12
13func initTerminal(w io.Writer) {
14 switch v := w.(type) {
15 case *os.File:
16 sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true)
17 }
18}