vgrep- A pager for grep

Safe HaskellNone




Utilities for rendering Text

Tabs and other characters below ASCII 32 cause problems in Graphics.Vty, so we expand them to readable characters, e.g. \r to ^13. Tabs are expanded to the configured _tabstop.

expandForDisplay :: (Functor f, MonadReader Environment m) => f Text -> m (f Text) Source #

Expand a list of lines

expandLineForDisplay :: MonadReader Environment m => Text -> m Text Source #

Expand a single line

expandFormattedLine :: MonadReader Environment m => Formatted a -> m (Formatted a) Source #

Expand an ANSI formatted line