Upgrade to release 2.4:
- Add Python 3.8-3.10 to tox.ini. Remove old Python versions.
- Replace deprecated python setup.py test in tox.ini.
- Remove deprecated test_suite from setup.py.
- Move metadata to setup.cfg and add a pyproject.toml file.
- Include tests in sdist but not in wheel.
- Fix escape sequence warning in byte string literal.
- Open /dev/tty in binary mode under both Python 2 and 3.
- Officially change opentty's bufsize argument default from 1 to
-1. Under Python 3, 1 has effectively meant -1 all along but
Python 3.8 now issues a warning.
- Add readto, getfgcolor, getbgcolor, islightmode, and isdarkmode.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>