./comms/py-term-background, Determine if shell has a light or dark background

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.1, Package name: py311-term-background-1.0.1, Maintainer: pkgsrc-users

Determine if shell has a light or dark background.

From Python you can call term_background.is_dark_background() which returns a
True if we think the background is dark.

The heuristics used is to try to query the background color using an xterm
control sequence.


Master sites:

Filesize: 19.826 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-23 07:48:41 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
py-term-background: added version 1.0.1

Determine if shell has a light or dark background.

From Python you can call term_background.is_dark_background() which returns a
True if we think the background is dark.

The heuristics used is to try to query the background color using an xterm
control sequence.