comms/py-term-background 1.0.1nb1 NetBSD
Determine if shell has a light or dark background
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- gnu-gpl-v2
- Categories
- comms, python
- Package size
- 13.3 KiB, 33.0 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | comms/py-term-background | 1.0.1nb1 |
| DragonFly | deskutils/py-term-background | 1.0.3.d0_1 |
Install
Binary package:
pkgin install py311-term-background
From pkgsrc:
cd /usr/pkgsrc/comms/py-term-background && make install clean
Dependencies
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-term-background-1.0.1nb1,py313-term-background-1.0.1nb1,py314-term-background-1.0.1nb1