-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathTerminal.hs
More file actions
39 lines (30 loc) · 894 Bytes
/
Terminal.hs
File metadata and controls
39 lines (30 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- | Render 'SimpleDocStream' in a terminal.
module Prettyprinter.Render.Terminal (
-- * Styling
AnsiStyle,
Color(..),
-- ** Font color
color, colorDull,
-- ** Background color
bgColor, bgColorDull,
-- ** Font style
bold, italicized, underlined, underlinedWith,
hyperlinked, hyperlinkedWithID, hyperlinkedWithParams,
-- ** Internal markers
--
-- | These should only be used for writing adaptors to other libraries; for
-- the average use case, use 'bold', 'bgColorDull', etc.
Intensity(..),
Bold(..),
Underlined(..),
UnderlineStyle(..),
Italicized(..),
Hyperlinked(..),
-- * Conversion to ANSI-infused 'Text'
renderLazy, renderStrict,
-- * Render directly to 'stdout'
renderIO,
-- ** Convenience functions
putDoc, hPutDoc,
) where
import Prettyprinter.Render.Terminal.Internal