mirror of
https://github.com/PretendoNetwork/maryo.git
synced 2024-05-16 03:50:13 -04:00
some optimizations
This commit is contained in:
parent
38bbebf790
commit
193baebbe6
10
shell.go
10
shell.go
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
|
||||
maryo/shell.go
|
||||
juxtaposition/shell.go
|
||||
|
||||
a small collection of terminal utilities
|
||||
shell interaction
|
||||
|
||||
written by Superwhiskers, licensed under gnu gplv3.
|
||||
written by superwhiskers, licensed under gnu agpl.
|
||||
if you want a copy, go to http://www.gnu.org/licenses/
|
||||
|
||||
*/
|
||||
|
@ -181,7 +181,7 @@ func code(index string) string {
|
|||
if runtime.GOOS == "darwin" { ansiTrick(); }
|
||||
|
||||
// fix prefix for windows
|
||||
if isWindows() {
|
||||
if runtime.GOOS == "windows" {
|
||||
|
||||
// prefix that the terminal
|
||||
// color lib uses
|
||||
|
@ -224,7 +224,7 @@ func consoleSequence(message string) {
|
|||
|
||||
// things are different for windows
|
||||
// *shrug*
|
||||
if isWindows() {
|
||||
if runtime.GOOS == "windows" {
|
||||
|
||||
// make that writer
|
||||
Writer := ansicolor.NewAnsiColorWriter(os.Stdout)
|
||||
|
|
Loading…
Reference in a new issue