Win32-2.13.0.0: A binding to Windows Win32 API.

Copyright(c) University of Glasgow 2006
LicenseBSD-style (see the file LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

System.Win32.Console

Description

A collection of FFI declarations for interfacing with Win32 Console API

Console mode

getConsoleMode :: HANDLE -> IO DWORD Source #

setConsoleMode :: HANDLE -> DWORD -> IO () Source #

eNABLE_ECHO_INPUT :: DWORD Source #

eNABLE_EXTENDED_FLAGS :: DWORD Source #

eNABLE_INSERT_MODE :: DWORD Source #

eNABLE_LINE_INPUT :: DWORD Source #

eNABLE_MOUSE_INPUT :: DWORD Source #

eNABLE_PROCESSED_INPUT :: DWORD Source #

eNABLE_QUICK_EDIT_MODE :: DWORD Source #

eNABLE_WINDOW_INPUT :: DWORD Source #

eNABLE_VIRTUAL_TERMINAL_INPUT :: DWORD Source #

eNABLE_PROCESSED_OUTPUT :: DWORD Source #

eNABLE_WRAP_AT_EOL_OUTPUT :: DWORD Source #

eNABLE_VIRTUAL_TERMINAL_PROCESSING :: DWORD Source #

dISABLE_NEWLINE_AUTO_RETURN :: DWORD Source #

eNABLE_LVB_GRID_WORLDWIDE :: DWORD Source #

Console code pages

getConsoleCP :: IO UINT Source #

setConsoleCP :: UINT -> IO () Source #

getConsoleOutputCP :: IO UINT Source #

setConsoleOutputCP :: UINT -> IO () Source #

Ctrl events

type CtrlEvent = DWORD Source #

cTRL_C_EVENT :: CtrlEvent Source #

cTRL_BREAK_EVENT :: CtrlEvent Source #

generateConsoleCtrlEvent :: CtrlEvent -> DWORD -> IO () Source #

Command line

commandLineToArgv :: String -> IO [String] Source #

This function can be used to parse commandline arguments and return the split up arguments as elements in a list.

Screen buffer

data CONSOLE_SCREEN_BUFFER_INFO Source #

Constructors

Instances

data COORD Source #

Constructors

Fields

Instances
Instance details

Defined in System.Win32.Console

Methods

(==) :: COORD -> COORD -> Bool #

(/=) :: COORD -> COORD -> Bool #

Instance details

Defined in System.Win32.Console

Methods

showsPrec :: Int -> COORD -> ShowS #

show :: COORD -> String #

showList :: [COORD] -> ShowS #

Instance details

Defined in System.Win32.Console

Methods

sizeOf :: COORD -> Int #

alignment :: COORD -> Int #

peekElemOff :: Ptr COORD -> Int -> IO COORD #

pokeElemOff :: Ptr COORD -> Int -> COORD -> IO () #

peekByteOff :: Ptr b -> Int -> IO COORD #

pokeByteOff :: Ptr b -> Int -> COORD -> IO () #

peek :: Ptr COORD -> IO COORD #

poke :: Ptr COORD -> COORD -> IO () #

data SMALL_RECT Source #

Constructors

Instances
Instance details

Defined in System.Win32.Console

Instance details

Defined in System.Win32.Console

getConsoleScreenBufferInfo :: HANDLE -> IO CONSOLE_SCREEN_BUFFER_INFO Source #

getCurrentConsoleScreenBufferInfo :: IO CONSOLE_SCREEN_BUFFER_INFO Source #

AltStyle によって変換されたページ (->オリジナル) /