reflex-vty-0.1.4.0: Reflex FRP host and widgets for vty applications
Safe HaskellNone
LanguageHaskell2010

Reflex.Vty.Widget.Input.Text

Description

 
Synopsis

Documentation

data TextInput t Source #

The output produced by text input widgets, including the text value and the number of display lines (post-wrapping). Note that some display lines may not be visible due to scrolling.

data TextInputConfig t Source #

Configuration options for a textInput. For more information on TextZipper, see Zipper.

Constructors

TextInputConfig 

Fields

Instances

Instances details
Reflex t => Default (TextInputConfig t) Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Text

Methods

def :: TextInputConfig t #

textInput :: (Reflex t, MonadHold t m, MonadFix m) => TextInputConfig t -> VtyWidget t m (TextInput t) Source #

A widget that allows text input

multilineTextInput :: (Reflex t, MonadHold t m, MonadFix m) => TextInputConfig t -> VtyWidget t m (TextInput t) Source #

A widget that allows multiline text input

textInputTile :: (Reflex t, MonadHold t m, MonadFix m, MonadNodeId m) => VtyWidget t m (TextInput t) -> Dynamic t Int -> Layout t m (TextInput t) Source #

Wraps a textInput or multilineTextInput in a tile. Uses the computed line count to greedily size the tile when vertically oriented, and uses the fallback width when horizontally oriented.

cursorAttributes :: Attr Source #

Default attributes for the text cursor

images :: [[Span Attr]] -> [Image] Source #

Turn a set of display line rows into a list of images (one per line)

image :: [[Span Attr]] -> Image Source #

Turn a set of display line rows into a single image

spanToImage :: Span Attr -> Image Source #

Turn a Span into an Image

updateTextZipper Source #

Arguments

:: Int

Tab width

-> Int

Page size

-> Event

The vty event to handle

-> TextZipper

The zipper to modify

-> TextZipper 

Default vty event handler for text inputs

def :: Default a => a #

The default value for this type.