Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 3.23 KB

bigtext.md

File metadata and controls

78 lines (57 loc) · 3.23 KB

BigTextPrinter

BigTextPrinter Example

(Show source of demo)

Usage

Basic usage

pterm.DefaultBigText.WithLetters(pterm.NewLettersFromString("Hello")).Render()

Options

To make a copy with modified options you can use: pterm.DefaultBigText.WithOptionName(option)

To change multiple options at once, you can chain the functions: pterm.DefaultBigText.WithOptionName(option).WithOptionName2(option2)...

Tip

Click the options and types to show the documentation on pkg.go.dev

Option Type
Letters Letters
BigCharacters map[string]string
Writer io.Writer

Output functions

This printer implements the interface RenderablePrinter

Function Description
Render() Prints to Terminal
Srender() Returns a string

Related