Skip to content

Commit

Permalink
📝 Add emphasis note about using typer.echo instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Apr 18, 2020
1 parent d7d05e6 commit 98d007f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial/printing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Hello World

You don't need to call `colorama.init()`. Typer (actually Click) will handle it underneath.

And make sure you use `typer.echo()` instead of `print()`.

!!! note "Technical Details"
The way color works in terminals is by using some codes (ASCII codes) as part of the text.

Expand Down

1 comment on commit 98d007f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.