On this page
System.Win32.Console.CtrlHandler
Copyright | 2008-2013 Judah Jacobson 2013 shelarcy |
---|---|
License | BSD-style |
Maintainer | shelarcy@gmail.com |
Stability | Provisional |
Portability | Non-portable (Win32 API) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Description
Set handlers of console Ctrl events.
type Handler = CtrlEvent -> IO BOOL Source
type PHANDLER_ROUTINE = FunPtr Handler Source
withConsoleCtrlHandler :: Handler -> IO a -> IO a Source
setConsoleCtrlHandler :: PHANDLER_ROUTINE -> BOOL -> IO () Source
This function isn't suitable when we want to set the cTRL_C_EVENT handler. If you want to set the cTRL_C_EVENT handler, use c_SetConsoleCtrlHandler
instead.
c_SetConsoleCtrlHandler :: PHANDLER_ROUTINE -> BOOL -> IO BOOL Source
mkHandler :: Handler -> IO PHANDLER_ROUTINE 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-CtrlHandler.html