79827302

Date: 2025-11-22 11:59:12
Score: 1
Natty:
Report link

It's actually much simpler with vargula. It is a python library that supports terminal text formatting with markup-like syntaxing. Here's what you need:

import vargula as vg
vg.write("<red>ONE</red> <blue>TWO</blue>")

Outputs like:

demo1

While the same, if you want them to be bold, you can do the following:

demo2

It also supports nested tags and defining your own styles. But for your current scenario, this should be sufficient.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PyCode