Win32-2.14.0.0: A binding to Windows Win32 API.
Copyright(c) University of Glasgow 2023
LicenseBSD-style (see the file LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

System.Win32.WindowsString.Console

Description

A collection of FFI declarations for interfacing with Win32 Console API (WindowsString variant)

Synopsis

Console mode

Console code pages

Ctrl events

Command line

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

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

getArgs :: IO [WindowsString] Source #

Based on GetCommandLineW. This behaves slightly different than getArgs. See the online documentation: https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinew

Screen buffer

data CONSOLE_SCREEN_BUFFER_INFOEX Source #

Constructors

CONSOLE_SCREEN_BUFFER_INFOEX 

Fields

data COORD Source #

Constructors

COORD 

Fields

Instances

Instances details
Storable COORD Source # 
Instance details

Defined in System.Win32.Console.Internal

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 () #

Show COORD Source # 
Instance details

Defined in System.Win32.Console.Internal

Methods

showsPrec :: Int -> COORD -> ShowS #

show :: COORD -> String #

showList :: [COORD] -> ShowS #

Eq COORD Source # 
Instance details

Defined in System.Win32.Console.Internal

Methods

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

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