Skip to content

support for formatted text in the terminal #1990

Closed Answered by Didymograptus
Didymograptus asked this question in Q&A
Discussion options

You must be logged in to vote

Also use of Rich Console API works. This is a neater solution than colorama.

https://rich.readthedocs.io/en/stable/console.html

How to use:

import rich in pyscript.toml

from rich.console import Console
console = Console()

console.print(f"{Fore.YELLOW}Hello World!\n")

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by WebReflection
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants