Documentation
¶
Index ¶
Constants ¶
View Source
const ( // STD_INPUT_HANDLE is the standard input handle STD_INPUT_HANDLE = uint32(-10 & 0xFFFFFFFF) // Console modes ENABLE_LINE_INPUT = uint32(0x0002) ENABLE_ECHO_INPUT = uint32(0x0004) ENABLE_PROCESSED_INPUT = uint32(0x0001) // INPUT_RECORD types KEY_EVENT = uint16(0x0001) // Keyboard event )
Variables ¶
View Source
var ( Kernel32DLL = windows.NewLazyDLL("kernel32.dll") // procGetStdHandle is a handle to the standard IO ProcGetStdHandle = Kernel32DLL.NewProc("GetStdHandle") // procGetConsoleMode is a handle to the console mode ProcGetConsoleMode = Kernel32DLL.NewProc("GetConsoleMode") // procSetConsoleMode is a handle to set the console mode ProcSetConsoleMode = Kernel32DLL.NewProc("SetConsoleMode") // procReadConsole is a handle to read the console ProcReadConsoleInput = Kernel32DLL.NewProc("ReadConsoleInputW") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.