commit | 78ecb04241c0121483589a30b0814836a746187d | [log] [tgz] |
---|---|---|
author | Oleku Konko <oleku.konko@gmail.com> | Mon Oct 02 11:52:56 2017 |
committer | GitHub <noreply@github.com> | Mon Oct 02 11:52:56 2017 |
tree | 090e2845098040d6c822f7b503aaace61687b9ec | |
parent | ecf753e7c962639ab5a1fb46f7da627d4c0a04b8 [diff] | |
parent | f24b78e507af376f6a86b07f9e7981f270a4ef72 [diff] |
Merge pull request #4 from fazalmajid/solaris Solaris/Illumos support
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
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 }