mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 16:36:07 +01:00
9cf508e673
* Update vendor github.com/sirupsen/logrus@v1.1.1 * Update vendor github.com/coreos/go-systemd/dbus@v17 * Update vendor github.com/golang/protobuf/proto@v1.2.0 * Update vendor github.com/konsorten/go-windows-terminal-sequences@v1.0.1 * Update vendor github.com/mdlayher/... * Update vendor github.com/prometheus/procfs/... * Update vendor golang.org/x/... Signed-off-by: Ben Kochie <superq@gmail.com>
19 lines
302 B
Go
19 lines
302 B
Go
// +build !appengine,!js,windows
|
|
|
|
package logrus
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
"syscall"
|
|
|
|
sequences "github.com/konsorten/go-windows-terminal-sequences"
|
|
)
|
|
|
|
func initTerminal(w io.Writer) {
|
|
switch v := w.(type) {
|
|
case *os.File:
|
|
sequences.EnableVirtualTerminalProcessing(syscall.Handle(v.Fd()), true)
|
|
}
|
|
}
|