[Documentation] [TitleIndex] [WordIndex

  Show EOL distros: 

EOL distros:  

Overview

This package provides definitions and methods that enable simple colouring for output on the console without having to remember all the specific keycodes that shells use.

Colour Definitions

The current list of supported colour definitions:

Usage

Freeform Style

Simply intersperse colour definitions throughout your printing statements, e.g.

Toggle line numbers
   1    import rocon_console.console as console
   2    print(console.cyan + "    Name" + console.reset + ": " + console.yellow + "Dude" + console.reset)

Logging Style

Toggle line numbers
   1    import rocon_console.console as console
   2    logdebug("the ingredients of beer are interesting, but not important to the consumer")
   3    loginfo("the name of a beer is useful information")
   4    logwarn("this is a lite beer")
   5    logerror("this is a budweiser")
   6    logfatal("this is mereley a cider")


2025-03-29 16:17