// +build windows package readline func init() { isWindows = true } // get width of the terminal func getWidth() int { info, _ := GetConsoleScreenBufferInfo() if info == nil { return 0 } return int(info.dwSize.x) }