Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- func GetRecentOutputByHandle(handle windows.Handle, height int) ([]string, error)
- func GetRecentOutputByStderr(height int) ([]string, error)
- func GetRecentOutputByStdout(height int) ([]string, error)
- func Rune(handle Handle, c rune) uint32
- func SendKeyEvent(handle Handle, events ...*KeyEventRecord) uint32
- func String(handle Handle, s string)
- func VirtualKey(handle Handle, v int) uint32
- type CharInfoT
- type Coord
- type Handle
- func (handle Handle) Close() error
- func (handle Handle) FlushConsoleInputBuffer() error
- func (handle Handle) GetConsoleMode() uint32
- func (handle Handle) GetNumberOfEvent() (int, error)
- func (handle Handle) Read(events []InputRecord) uint32
- func (handle Handle) SetConsoleMode(flag uint32)
- func (handle Handle) WaitForSingleObject(msec uintptr) (uintptr, error)
- func (handle Handle) Write(events []InputRecord) uint32
- type InputRecord
- type KeyEventRecord
- type MouseEventRecord
- type SmallRect
Constants ¶
View Source
const ( COMMON_LVB_LEADING_BYTE = 0x0100 COMMON_LVB_TRAILING_BYTE = 0x0200 )
View Source
const ENABLE_MOUSE_INPUT = 16
View Source
const ENABLE_WINDOW_INPUT = 8
View Source
const FOCUS_EVENT = 16
View Source
const KEY_EVENT = 1
View Source
const MENU_EVENT = 8
View Source
const MOUSE_EVENT = 2
View Source
const WAIT_ABANDONED = 128
View Source
const WAIT_FAILED = -1
View Source
const WAIT_OBJECT_0 = 0
View Source
const WAIT_TIMEOUT = 258
View Source
const WINDOW_BUFFER_SIZE_EVENT = 4
Variables ¶
This section is empty.
Functions ¶
func GetRecentOutputByHandle ¶
func GetRecentOutputByStderr ¶
func GetRecentOutputByStdout ¶
func SendKeyEvent ¶
func SendKeyEvent(handle Handle, events ...*KeyEventRecord) uint32
func VirtualKey ¶
Types ¶
type Handle ¶
func (Handle) FlushConsoleInputBuffer ¶
func (Handle) GetConsoleMode ¶
func (Handle) GetNumberOfEvent ¶
func (Handle) Read ¶
func (handle Handle) Read(events []InputRecord) uint32
func (Handle) SetConsoleMode ¶
func (Handle) WaitForSingleObject ¶
func (Handle) Write ¶
func (handle Handle) Write(events []InputRecord) uint32
type InputRecord ¶
type InputRecord struct {
EventType uint16
Info [8]uint16
// contains filtered or unexported fields
}
func (*InputRecord) KeyEvent ¶
func (e *InputRecord) KeyEvent() *KeyEventRecord
func (*InputRecord) MouseEvent ¶
func (e *InputRecord) MouseEvent() *MouseEventRecord
func (*InputRecord) ResizeEvent ¶
func (e *InputRecord) ResizeEvent() (int16, int16)
type KeyEventRecord ¶
type MouseEventRecord ¶
func (MouseEventRecord) String ¶
func (m MouseEventRecord) String() string
Click to show internal directories.
Click to hide internal directories.