System.Win32.Console

Win32-2.6.1.0: A binding to part of the Win32 library

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

System.Win32.Console

Contents

- Console code pages
- Ctrl events
- Command line

Description

A collection of FFI declarations for interfacing with Win32 Console API

Synopsis

- 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]

# Console code pages

getConsoleCP :: IO UINT #

setConsoleCP :: UINT -> IO () #

getConsoleOutputCP :: IO UINT #

setConsoleOutputCP :: UINT -> IO () #

# Ctrl events

type CtrlEvent = DWORD #

cTRL_C_EVENT :: CtrlEvent #

cTRL_BREAK_EVENT :: CtrlEvent #

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

# Command line

commandLineToArgv :: String -> IO [String] #

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