Style Your Game With Rich
00:32 Rich is a third-party library that you need to install before you can use it. Before you install Rich, you should create a virtual environment where you can install your project dependencies. Depending on the platform you’re using, you’ll need slightly different commands. Here they are for Windows,
Rich renders the word Rich in bold with red text. Rich uses its own markup syntax that’s inspired by Bulletin Board Code. You add style directives in square brackets, such as the
[bold red] just seen.
You just used
:snake: to print a snake emoji. You can see the full list of emoji that Rich supports with this command, but it’s a very big list, so you’ll need to spend some time scrolling to see every one.
02:21 Emoji support is limited on Windows 10 and earlier when using the command prompt. As you can see on-screen, the emoji are not displayed correctly. However, you can install Windows Terminal to get the full Rich experience as well as a much more performant and usable terminal compared to the dated command prompt.
Become a Member to join the conversation.