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

Graphics.Vty.Platform.Windows.WindowsInterfaces

Description

This module provides wrappers around Win32 API calls. These functions provide initialization, shutdown, and input event handling.

Synopsis

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