func RestoreCursorAttrs() {
	if savedCursorAttrs == nil {
		return
	}
	setConsoleCursorInfo(uintptr(syscall.Stdout), savedCursorAttrs)
}
Restore cursor position and attributes
package goTerminal
import "C"
import (
	"fmt"
	"syscall"
)
func CursorUp(n int) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	y := consoleInfo.CursorPosition.Y - int16(n)
	setConsoleCursorPosition(stdout, COORD{X: consoleInfo.CursorPosition.X, Y: y})
}
func CursorDown(n int) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	y := consoleInfo.CursorPosition.Y + int16(n)
	setConsoleCursorPosition(stdout, COORD{X: consoleInfo.CursorPosition.X, Y: y})
}
func CursorRight(n int) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	x := consoleInfo.CursorPosition.X + int16(n)
	setConsoleCursorPosition(stdout, COORD{X: x, Y: consoleInfo.CursorPosition.Y})
}
func CursorLeft(n int) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	x := consoleInfo.CursorPosition.X - int16(n)
	setConsoleCursorPosition(stdout, COORD{X: x, Y: consoleInfo.CursorPosition.Y})
}
func CursorNextLine() {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	y := consoleInfo.CursorPosition.Y + 1
	setConsoleCursorPosition(stdout, COORD{X: 0, Y: y})
}
func CursorColumn(n int) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	setConsoleCursorPosition(stdout, COORD{X: int16(n), Y: consoleInfo.CursorPosition.Y})
}
func CursorLineColumn(Line, Column int) {
	setConsoleCursorPosition(stdout, COORD{int16(Column), int16(Line)})
}
func CursorHome() {
	CursorLineColumn(0, 0)
}
func CursorLeftHome() {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		return
	}
	setConsoleCursorPosition(stdout, COORD{X: 0, Y: consoleInfo.CursorPosition.Y})
}
func CursorShow() {
	C.showcursor()
}
func CursorHide() {
	C.hidecursor()
}
func Size() (*Coord, error) {
	consoleInfo, err := getConsoleScreenBufferInfo(stdout)
	if err != nil {
		fmt.Println(err)
		return nil, err
	}
	return &Coord{Y: int(consoleInfo.Size.Y), X: int(consoleInfo.Size.X)}, nil
}
var savedCursorAttrs *CONSOLE_CURSOR_INFO
func SaveCursorAttrs() {
	err := getConsoleCursorInfo(uintptr(syscall.Stdout), savedCursorAttrs)
	if err != nil {
		return
	}
}