vgrep-0.1.4.1: A pager for grep

Safe HaskellNone
LanguageHaskell2010

Vgrep.App

Contents

Synopsis

Documentation

data App e s Source #

The App type is parameterized over the type e of events it handles and the type s of its state.

Constructors

App 

Fields

runApp :: App e s -> Config -> Producer e IO () -> IO s Source #

Runs runs the event loop until an Interrupt Halt is encountered. Events handled with Interrupt (Suspend action) will shut down Vty, run the action (e. g. invoking an external editor), and start Vty again.

runApp_ :: App e s -> Config -> Producer e IO () -> IO () Source #

Like runApp, but does not return the final state.

Auxiliary definitions

ttyIn :: IO Fd Source #

Opens devtty read-only. Should be connected to the stdin of a GUI process (e. g. Vty).

ttyOut :: IO Fd Source #

Opens devtty write-only. Should be connected to the stdout of a GUI process (e. g. Vty).