csbi

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleScreenBufferInfoT

type ConsoleScreenBufferInfoT struct {
	Size              coordT
	CursorPosition    coordT
	Attributes        uint16
	Window            smallRectT
	MaximumWindowSize coordT
}

ConsoleScreenBufferInfoT is the type for structure contains terminal's information.

func GetConsoleScreenBufferInfo

func GetConsoleScreenBufferInfo() *ConsoleScreenBufferInfoT

GetConsoleScreenBufferInfo returns the latest ConsoleScreenBufferInfoT cursor position, window region.

func (*ConsoleScreenBufferInfoT) CursorX

func (csbi *ConsoleScreenBufferInfoT) CursorX() int

func (*ConsoleScreenBufferInfoT) CursorY

func (csbi *ConsoleScreenBufferInfoT) CursorY() int

func (*ConsoleScreenBufferInfoT) Height

func (csbi *ConsoleScreenBufferInfoT) Height() int

func (*ConsoleScreenBufferInfoT) ViewSize

func (csbi *ConsoleScreenBufferInfoT) ViewSize() (int, int)

ViewSize returns window size from ConsoleScreenBufferInfo structure.

func (*ConsoleScreenBufferInfoT) Width

func (csbi *ConsoleScreenBufferInfoT) Width() int

type Handle

type Handle windows.Handle

func (Handle) GetConsoleScreenBufferInfo

func (h Handle) GetConsoleScreenBufferInfo() *ConsoleScreenBufferInfoT

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL