Skip to content

Commit

Permalink
use newer functions in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jun 14, 2022
1 parent d107216 commit 6eb9db9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _examples/demo/demo/main.go
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/pterm/pterm"
"github.com/pterm/pterm/putils"
)

// Speed the demo up, by setting this flag.
Expand Down Expand Up @@ -215,8 +216,8 @@ func setup() {

func introScreen() {
ptermLogo, _ := pterm.DefaultBigText.WithLetters(
pterm.NewLettersFromStringWithStyle("P", pterm.NewStyle(pterm.FgLightCyan)),
pterm.NewLettersFromStringWithStyle("Term", pterm.NewStyle(pterm.FgLightMagenta))).
putils.NewLettersFromStringWithStyle("P", pterm.NewStyle(pterm.FgLightCyan)),
putils.NewLettersFromStringWithStyle("Term", pterm.NewStyle(pterm.FgLightMagenta))).
Srender()

pterm.DefaultCenter.Print(ptermLogo)
Expand Down

0 comments on commit 6eb9db9

Please sign in to comment.