Skip to content

A sollection of Python demos that make use of ANSI Escape Codes

Notifications You must be signed in to change notification settings

DaChezePufz/PhytonANSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

PhytonANSI

A sollection of Python demos that make use of ANSI Escape Codes

All of these programs work by calling the ANSI Escape in Python during a print statment, then providing the information, like colors to the terminal For Python, start by \x1B[ then the color/ formatting code (which can be seperated with semi-colons ; then m to end the statment. Example: print("\x1B[103;34mHelo World!\x1B[0m") would display: Hello World! in Blue text, with a Bright Yellow background. The closing escape with 0 as the code resets the formatting back to default.

Wikipedia page on ANSI Escape Codes

ansiColorsDemo

This is a program that displays all 256 colour combinations. DOES NOT DISPLAY IN IDLE, USE CMD/TERMINAL

Grid Layout Grid Layout

About

A sollection of Python demos that make use of ANSI Escape Codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages