Path to this page:
Subject: CVS commit: pkgsrc/textproc/py-colored
From: Adam Ciarcinski
Date: 2023-08-06 09:30:24
Message id: 20230806073024.65FC1FBDB@cvs.NetBSD.org
Log Message:
py-colored: updated to 2.2.3
Version 2.2.3 - (07-07-2023)
Fixed
Typing error
Version 2.2.2 - (26-06-2023)
Added
Set for environment variable $COLORTERM
Updated
Maximum number range for RGB colors
Version 2.2.1 - (25-06-2023)
Updated
Exception InvalidNavigation -> InvalidControl
Version 2.2.0 - (24-06-2023)
Added
CSI (Control Sequence Introducer) sequences
SGR (Select Graphic Rendition) parameter style underline color
Support RGB color schema
Updated
cprint() to support RGB colors
Fixed
Typo for style 'underlined', changed to 'underline'
Version 2.1.1 - (20-06-2023)
Updated
Legacy support versions 1.x.x:
Functions fg(), bg(), attr() are back until deprecated to the future.
Class attributes fore, back and style will be available also but instead \
imported them directly, you can use like the examples below:
from colored.foreground import fore
from colored.background import back
from colored.attributes import style
Version 2.1.0 - (20-06-2023)
Updated
Updated library for default values
Replace function show_colour() with cprint()
Added
cprint(text, foreground='', background='', formatting='', reset=True, **kwargs) \
function
Version 2.0.0 - (19-06-2023)
Updated
Coding style
For typing hints
Class names:
fore -> Fore
back -> Back
style -> Style
Function names:
fg() -> fore()
bg() -> back()
attr() -> style()
Class attributes styles and colors in lower case, example:
Fore.red is the same Fore.RED
Style.bold is the same Style.BOLD
Added
Documentation site: https://dslackw.gitlab.io/colored
Styles italic and strikeout
Function show_colour()
Files: