haskell / 9 / libraries / win32-2.12.0.0 / system-win32-console.html

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

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

data COORD Source

Constructors

COORD

Fields

Instances
Instances details
Storable COORD Source
Instance details

Defined in System.Win32.Console

Show COORD Source
Instance details

Defined in System.Win32.Console

Eq COORD Source
Instance details

Defined in System.Win32.Console

Methods

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

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

data SMALL_RECT Source

Constructors

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