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

Reflex.Vty.Widget.Scroll

Description

 
Synopsis

Documentation

data ScrollToBottom Source #

Configuration options for automatic scroll-to-bottom behavior

Constructors

ScrollToBottom_Always

Always scroll to the bottom on new output

ScrollToBottom_Maintain

Scroll down with new output only when, prior to the new output being added, the widget was scrolled all the way to the bottom.

data ScrollableConfig t Source #

Configuration for the scrollable element. Controls scroll behavior.

Constructors

ScrollableConfig 

Fields

Instances

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

Defined in Reflex.Vty.Widget.Scroll

Methods

def :: ScrollableConfig t #

data Scrollable t Source #

The output of a scrollable, indicating its current scroll position.

scrollable :: forall t m. (Reflex t, MonadHold t m, MonadFix m, HasDisplayRegion t m, HasInput t m, HasImageWriter t m, HasTheme t m) => ScrollableConfig t -> m (Behavior t Image, Event t ()) -> m (Scrollable t) Source #

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

scrollByLines :: ScrollPos -> Int -> Int -> Int -> ScrollPos Source #

Modify the scroll position by the given number of lines

scrollToLine :: Int -> Int -> Int -> ScrollPos Source #

Scroll to a particular line