File: doc.go

package info (click to toggle)
golang-github-olekukonko-ts 0.0~git20140412.0.ecf753e-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, bullseye-backports, buster, buster-backports, experimental, sid
  • size: 96 kB
  • ctags: 28
  • sloc: makefile: 3
file content (36 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2014 Oleku Konko All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.

// 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

/**

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

Installation

Minimum requirements are Go 1.1+ with fill Windows support

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
	}

**/

package ts