README
¶
ts (Terminal Size)
Simple go Application to get Terminal Size. So Many Implementations do not support windows but ts
has full windows support.
Run go get github.com/olekukonko/ts
to download and install
Example
package main
import (
"fmt"
"github.com/olekukonko/ts"
)
func main() {
size, _ := ts.GetSize()
fmt.Println(size.Col()) // Get Width
fmt.Println(size.Row()) // Get Height
fmt.Println(size.PosX()) // Get X position
fmt.Println(size.PosY()) // Get Y position
}
Documentation
¶
Overview ¶
This module is a Terminal API for the Go Programming Language. The protocols were written in pure Go and works on windows and unix systems
Index ¶
Examples ¶
Constants ¶
View Source
const (
TIOCGWINSZ = 0x5413
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.