reflex-vty-0.2.0.0: Reflex FRP host and widgets for VTY applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Vty.Widget.Text

Description

 
Synopsis

Documentation

fill :: (HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Char -> m () Source #

Fill the background with a particular character.

data RichTextConfig t Source #

Configuration options for displaying "rich" text

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

Defined in Reflex.Vty.Widget.Text

Methods

def :: RichTextConfig t #

richText :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => RichTextConfig t -> Behavior t Text -> m () Source #

A widget that displays text with custom time-varying attributes

text :: (Reflex t, Monad m, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t Text -> m () Source #

Renders text, wrapped to the container width

scrollableText Source #

Arguments

:: (Reflex t, MonadHold t m, MonadFix m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasTheme t m) 
=> Event t Int

Number of lines to scroll by

-> Behavior t Text 
-> m (Behavior t (Int, Int))

(Current scroll position, total number of lines)

Scrollable text widget. The output pair exposes the current scroll position and total number of lines (including those that are hidden)

display :: (Reflex t, Monad m, Show a, HasDisplayRegion t m, HasImageWriter t m, HasTheme t m) => Behavior t a -> m () Source #

Renders any behavior whose value can be converted to String as text