On this page
System.Win32.Console
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 |
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
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
CONSOLE_SCREEN_BUFFER_INFO | |
Fields
|
Instances
Instances
Storable COORD Source | |
Defined in System.Win32.Console |
|
Show COORD Source | |
Eq COORD Source | |
data SMALL_RECT Source
Constructors
Instances
Storable SMALL_RECT Source | |
Defined in System.Win32.Console MethodssizeOf :: 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 |
|
Show SMALL_RECT Source | |
Defined in System.Win32.Console MethodsshowsPrec :: Int -> SMALL_RECT -> ShowS Source show :: SMALL_RECT -> String Source showList :: [SMALL_RECT] -> ShowS Source |
|
Eq SMALL_RECT Source | |
Defined in System.Win32.Console |
getConsoleScreenBufferInfo :: HANDLE -> IO CONSOLE_SCREEN_BUFFER_INFO Source
getCurrentConsoleScreenBufferInfo :: IO CONSOLE_SCREEN_BUFFER_INFO Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/Win32-2.12.0.0/System-Win32-Console.html