mewkiz/pkg — pull request #1 by joshlf13 (2012-08-16 08:12:06+00:00)
Title: Fixed problems with using pkg/term on windows

In size.go, syscalls caused a compilation error since the windows build of go doesn't have those syscalls.

I moved size.go to size_os.go files for each non-windows os.

Also, win32 terminals (cmd prompt is one of these) don't use terminal color codes, so color-formatted text is just printed directly and comes out looking like gobbledygook (...Firefox just corrected the spelling of that word for me...). Anyway, I added a little "am I on windows" check (runtime.GOOS != "windows") and had Color return a normal, unformatted string in such cases.