Documentation
¶
Index ¶
- Constants
- func Count() (int, error)
- func DisableCtrlC()
- func Flush() error
- func IsCtrlCPressed() bool
- func Rune() rune
- func RuneWithin(msec uintptr) (rune, error)
- func Wait(timeout_msec uintptr) (bool, error)
- type Event
- type Handle
- func (h *Handle) All() Event
- func (h *Handle) Close()
- func (h *Handle) DisableCtrlC()
- func (h *Handle) Flush() error
- func (h *Handle) IsCtrlCPressed() bool
- func (h *Handle) Rune() rune
- func (h *Handle) RuneWithin(msec uintptr) (rune, error)
- func (h *Handle) Wait(timeout_msec uintptr) (bool, error)
- func (h *Handle) Within(msec uintptr) (Event, error)
Constants ¶
View Source
const ( RIGHT_ALT_PRESSED = 1 LEFT_ALT_PRESSED = 2 RIGHT_CTRL_PRESSED = 4 LEFT_CTRL_PRESSED = 8 CTRL_PRESSED = RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED ALT_PRESSED = RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED )
View Source
const ( FROM_LEFT_1ST_BUTTON_PRESSED = 0x0001 FROM_LEFT_2ND_BUTTON_PRESSED = 0x0004 FROM_LEFT_3RD_BUTTON_PRESSED = 0x0008 FROM_LEFT_4TH_BUTTON_PRESSED = 0x0010 RIGHTMOST_BUTTON_PRESSED = 0x0002 )
View Source
const ALL_EVENTS = consoleinput.ENABLE_WINDOW_INPUT | consoleinput.ENABLE_MOUSE_INPUT
View Source
const IGNORE_RESIZE_EVENT uint32 = 0
View Source
const NUL = '\000'
Variables ¶
This section is empty.
Functions ¶
func DisableCtrlC ¶
func DisableCtrlC()
func IsCtrlCPressed ¶
func IsCtrlCPressed() bool
func RuneWithin ¶
Types ¶
type Event ¶
type Event struct { Focus *struct{} // MS says it should be ignored Key *keyEvent // == KeyDown KeyDown *keyEvent KeyUp *keyEvent Menu *struct{} // MS says it should be ignored Mouse *consoleinput.MouseEventRecord // not supported,yet Resize *resizeEvent }
type Handle ¶
type Handle struct { consoleinput.Handle // contains filtered or unexported fields }
func (*Handle) DisableCtrlC ¶
func (h *Handle) DisableCtrlC()
func (*Handle) IsCtrlCPressed ¶
Click to show internal directories.
Click to hide internal directories.