1// Copyright 2014 Oleku Konko All rights reserved.
2// Use of this source code is governed by a MIT
3// license that can be found in the LICENSE file.
4
5// This module is a Terminal  API for the Go Programming Language.
6// The protocols were written in pure Go and works on windows and unix systems
7
8package ts
9
10// Return System Size
11type Size struct {
12	row  uint16
13	col  uint16
14	posX uint16
15	posY uint16
16}
17
18// Get Terminal Width
19func (w Size) Col() int {
20	return int(w.col)
21}
22
23// Get Terminal Height
24func (w Size) Row() int {
25	return int(w.row)
26}
27
28// Get Position X
29func (w Size) PosX() int {
30	return int(w.posX)
31}
32
33// Get Position Y
34func (w Size) PosY() int {
35	return int(w.posY)
36}
37