Versions in this module Expand all Collapse all v0 v0.1.1 Nov 18, 2021 v0.1.0 Mar 18, 2021 Changes in this version + var EmptyCodes = ControlCodes + var StandardCodes = ControlCodes + var WindowsCodes = ControlCodes + func Output(para *styled.Paragraph, out io.Writer, config *Config, format Format) error + func T() tracing.Trace + type Config struct + Context *uax11.Context + Debug bool + Justify bool + LineWidth int + func ConfigFromTerminal() *Config + type ConsoleFixedWidth struct + Codes *ControlCodes + NeedsReorder ReorderFlag + func NewConsoleFixedWidthFormat(codes *ControlCodes, colors map[styled.Style]*color.Color, reorder ReorderFlag) *ConsoleFixedWidth + func NewLocalConsoleFormat() *ConsoleFixedWidth + func (fw *ConsoleFixedWidth) LTR(w io.Writer) + func (fw *ConsoleFixedWidth) Line(length int, linelength int, w io.Writer) + func (fw *ConsoleFixedWidth) NeedsReordering() ReorderFlag + func (fw *ConsoleFixedWidth) Newline(w io.Writer) + func (fw *ConsoleFixedWidth) Postamble(w io.Writer) + func (fw *ConsoleFixedWidth) Preamble(w io.Writer) + func (fw *ConsoleFixedWidth) Print(para *styled.Paragraph, config *Config) error + func (fw *ConsoleFixedWidth) RTL(w io.Writer) + func (fw *ConsoleFixedWidth) StyledText(s string, style styled.Style, w io.Writer) + type ControlCodes struct + LTR []byte + Newline []byte + Postamble []byte + Preamble []byte + RTL []byte + type Format interface + LTR func(io.Writer) + Line func(int, int, io.Writer) + NeedsReordering func() ReorderFlag + Newline func(io.Writer) + Postamble func(io.Writer) + Preamble func(io.Writer) + RTL func(io.Writer) + StyledText func(string, styled.Style, io.Writer) + type HTML struct + func NewHTML(reorder ReorderFlag) *HTML + func (html *HTML) LTR(w io.Writer) + func (html *HTML) Line(length int, linelength int, w io.Writer) + func (html *HTML) NeedsReordering() ReorderFlag + func (html *HTML) Newline(w io.Writer) + func (html *HTML) Postamble(w io.Writer) + func (html *HTML) Preamble(w io.Writer) + func (html *HTML) Print(para *styled.Paragraph, w io.Writer, config *Config) error + func (html *HTML) RTL(w io.Writer) + func (html *HTML) StyledText(s string, style styled.Style, w io.Writer) + type HTMLStyle inline.Style + func (s HTMLStyle) Add(sty HTMLStyle) HTMLStyle + func (s HTMLStyle) Equals(other styled.Style) bool + func (s HTMLStyle) String() string + type ReorderFlag int + const ReorderGraphemes + const ReorderNone + const ReorderWords