Copyright | (c) University of Glasgow 2006 |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
A collection of FFI declarations for interfacing with Win32 Console API
Synopsis
- getConsoleMode :: HANDLE -> IO DWORD
- setConsoleMode :: HANDLE -> DWORD -> IO ()
- eNABLE_ECHO_INPUT :: DWORD
- eNABLE_EXTENDED_FLAGS :: DWORD
- eNABLE_INSERT_MODE :: DWORD
- eNABLE_LINE_INPUT :: DWORD
- eNABLE_MOUSE_INPUT :: DWORD
- eNABLE_PROCESSED_INPUT :: DWORD
- eNABLE_QUICK_EDIT_MODE :: DWORD
- eNABLE_WINDOW_INPUT :: DWORD
- eNABLE_VIRTUAL_TERMINAL_INPUT :: DWORD
- eNABLE_PROCESSED_OUTPUT :: DWORD
- eNABLE_WRAP_AT_EOL_OUTPUT :: DWORD
- eNABLE_VIRTUAL_TERMINAL_PROCESSING :: DWORD
- dISABLE_NEWLINE_AUTO_RETURN :: DWORD
- eNABLE_LVB_GRID_WORLDWIDE :: DWORD
- getConsoleCP :: IO UINT
- setConsoleCP :: UINT -> IO ()
- getConsoleOutputCP :: IO UINT
- setConsoleOutputCP :: UINT -> IO ()
- type CtrlEvent = DWORD
- cTRL_C_EVENT :: CtrlEvent
- cTRL_BREAK_EVENT :: CtrlEvent
- generateConsoleCtrlEvent :: CtrlEvent -> DWORD -> IO ()
- commandLineToArgv :: String -> IO [String]
- data CONSOLE_SCREEN_BUFFER_INFO = CONSOLE_SCREEN_BUFFER_INFO {}
- data COORD = COORD {}
- data SMALL_RECT = SMALL_RECT {}
- getConsoleScreenBufferInfo :: HANDLE -> IO CONSOLE_SCREEN_BUFFER_INFO
- getCurrentConsoleScreenBufferInfo :: IO CONSOLE_SCREEN_BUFFER_INFO
Console mode
Console code pages
getConsoleCP :: IO UINT Source #
setConsoleCP :: UINT -> IO () Source #
setConsoleOutputCP :: UINT -> IO () Source #
Ctrl events
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 #
CONSOLE_SCREEN_BUFFER_INFO | |
|
Instances
Eq CONSOLE_SCREEN_BUFFER_INFO Source # | |
Defined in System.Win32.Console | |
Show CONSOLE_SCREEN_BUFFER_INFO Source # | |
Defined in System.Win32.Console | |
Storable CONSOLE_SCREEN_BUFFER_INFO Source # | |
Defined in System.Win32.Console sizeOf :: CONSOLE_SCREEN_BUFFER_INFO -> Int Source # alignment :: CONSOLE_SCREEN_BUFFER_INFO -> Int Source # peekElemOff :: Ptr CONSOLE_SCREEN_BUFFER_INFO -> Int -> IO CONSOLE_SCREEN_BUFFER_INFO Source # pokeElemOff :: Ptr CONSOLE_SCREEN_BUFFER_INFO -> Int -> CONSOLE_SCREEN_BUFFER_INFO -> IO () Source # peekByteOff :: Ptr b -> Int -> IO CONSOLE_SCREEN_BUFFER_INFO Source # pokeByteOff :: Ptr b -> Int -> CONSOLE_SCREEN_BUFFER_INFO -> IO () Source # peek :: Ptr CONSOLE_SCREEN_BUFFER_INFO -> IO CONSOLE_SCREEN_BUFFER_INFO Source # poke :: Ptr CONSOLE_SCREEN_BUFFER_INFO -> CONSOLE_SCREEN_BUFFER_INFO -> IO () Source # |
Instances
Eq COORD Source # | |
Show COORD Source # | |
Storable COORD Source # | |
Defined in System.Win32.Console sizeOf :: COORD -> Int Source # alignment :: COORD -> Int Source # peekElemOff :: Ptr COORD -> Int -> IO COORD Source # pokeElemOff :: Ptr COORD -> Int -> COORD -> IO () Source # peekByteOff :: Ptr b -> Int -> IO COORD Source # pokeByteOff :: Ptr b -> Int -> COORD -> IO () Source # |
data SMALL_RECT Source #
Instances
Eq SMALL_RECT Source # | |
Defined in System.Win32.Console (==) :: SMALL_RECT -> SMALL_RECT -> Bool # (/=) :: SMALL_RECT -> SMALL_RECT -> Bool # | |
Show SMALL_RECT Source # | |
Defined in System.Win32.Console | |
Storable SMALL_RECT Source # | |
Defined in System.Win32.Console sizeOf :: SMALL_RECT -> Int Source # alignment :: SMALL_RECT -> Int Source # peekElemOff :: Ptr SMALL_RECT -> Int -> IO SMALL_RECT Source # pokeElemOff :: Ptr SMALL_RECT -> Int -> SMALL_RECT -> IO () Source # peekByteOff :: Ptr b -> Int -> IO SMALL_RECT Source # pokeByteOff :: Ptr b -> Int -> SMALL_RECT -> IO () Source # peek :: Ptr SMALL_RECT -> IO SMALL_RECT Source # poke :: Ptr SMALL_RECT -> SMALL_RECT -> IO () Source # |