brick-0.6.2: A declarative terminal user interface library

Safe HaskellNone
LanguageHaskell2010

Brick.Widgets.ProgressBar

Contents

Description

This module provides a progress bar widget.

Synopsis

Documentation

progressBar Source

Arguments

:: Maybe String

The label. If specified, this is shown in the center of the progress bar.

-> Float

The progress value. Should be between 0 and 1 inclusive.

-> Widget 

Draw a progress bar with the specified (optional) label and progress value. This fills available horizontal space and is one row high.

Attributes

progressCompleteAttr :: AttrName Source

The attribute of the completed portion of the progress bar.

progressIncompleteAttr :: AttrName Source

The attribute of the incomplete portion of the progress bar.