vty-windows-0.2.0.2: Windows backend for Vty
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.Platform.Windows.WindowsConsoleInput

Description

This module provides a function to obtain input events from the Win32 API

Synopsis

Documentation

data KeyEventRecord Source #

This type represents a keyboard input event. The structure is documented here: https://learn.microsoft.com/en-us/windows/console/key-event-record-str

Constructors

KeyEventRecordC 

Fields

newtype MenuEventRecord Source #

This type represents a window menu event. (Current ignored by VTY). The structure is documented here: https://learn.microsoft.com/en-us/windows/console/menu-event-record-str

Constructors

MenuEventRecordC 

Fields

readConsoleInput :: Ptr WinConsoleInputEvent -> Int -> Handle -> IO [WinConsoleInputEvent] Source #

A wrapper for the ReadConsoleInput Win32 API as documented here: https://learn.microsoft.com/en-us/windows/console/readconsoleinput