Terminal Database¶
import chafa
database = chafa.TermDb()
term_info = database.detect()
TermDb¶
A TermDb
contains information on terminals, and can be used to obtain a suitable TermInfo
for a terminal environment.
- class chafa.TermDb(no_defaults: bool = False)¶
- Parameters:
no_defaults (bool) – If
True
, the class will be initialised blank instead of with the default global database.