Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module provides wrappers around Win32 API calls. These functions provide initialization, shutdown, and input event handling.
Synopsis
- readBuf :: TChan InternalEvent -> Ptr WinConsoleInputEvent -> Handle -> Ptr Word8 -> Int -> IO Int
- configureInput :: Handle -> IO (IO (), IO ())
- configureOutput :: Handle -> IO (IO ())
Documentation
readBuf :: TChan InternalEvent -> Ptr WinConsoleInputEvent -> Handle -> Ptr Word8 -> Int -> IO Int Source #
Read the contents of the Windows input buffer. The contents are parsed and either written to the TChan queue for Window size events, or written to the Word8 buffer for keyboard events and VT sequences. Returns the # of bytes written to the Word8 buffer.
configureInput :: Handle -> IO (IO (), IO ()) Source #
Configure Windows to correctly handle input for a Vty application
configureOutput :: Handle -> IO (IO ()) Source #
Configure Windows to correctly handle output for a Vty application