mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-09-03 16:18:04 -05:00
20 lines
393 B
Go
20 lines
393 B
Go
|
|
// +build !windows
|
||
|
|
|
||
|
|
package terminal
|
||
|
|
|
||
|
|
import (
|
||
|
|
"io"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Returns special stdout, which converts escape sequences to Windows API calls
|
||
|
|
// on Windows environment.
|
||
|
|
func NewAnsiStdout(out FileWriter) io.Writer {
|
||
|
|
return out
|
||
|
|
}
|
||
|
|
|
||
|
|
// Returns special stderr, which converts escape sequences to Windows API calls
|
||
|
|
// on Windows environment.
|
||
|
|
func NewAnsiStderr(out FileWriter) io.Writer {
|
||
|
|
return out
|
||
|
|
}
|