...

Source file src/github.com/sirupsen/logrus/terminal_windows.go

Documentation: github.com/sirupsen/logrus

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

View as plain text