Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print blinking text in python

Tags:

python

text

blink

colorama is a package which is universal and will work independent of the platform. But it doesn't seem to support blinking text. Any other way this can be achieved in python ?

like image 746
badri Avatar asked Jul 28 '26 12:07

badri


1 Answers

from termcolor import colored, cprint
cprint('\nJames Everleigh', 'red', attrs=['blink'])

cprint also allows bold, underlined, etc. and a small range of colors.

like image 50
Kenneth Bruinsslot Avatar answered Jul 31 '26 03:07

Kenneth Bruinsslot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!