github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/logger/output_nix.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 //go:build !windows 5 // +build !windows 6 7 package logger 8 9 import ( 10 "io" 11 "os" 12 ) 13 14 func OutputWriter() io.Writer { 15 return os.Stdout 16 } 17 18 func ErrorWriter() io.Writer { 19 return os.Stderr 20 } 21 22 // SaveConsoleMode records the current text attributes in a global, so 23 // it can be restored later, in case nonstandard colors are expected. 24 // (Windows only) 25 func SaveConsoleMode() error { 26 return nil 27 } 28 29 // RestoreConsoleMode restores the current text attributes from a global, 30 // in case nonstandard colors are expected. 31 // (Windows only) 32 func RestoreConsoleMode() { 33 }