use wcwidth to calculate proper term output width

This fixes an issue with printing some Unicode characters during scan
operations which take up more than 1 terminal cell, which would cause
line breaks or other garbage to remain in the status output line.
This commit is contained in:
ducklet 2022-12-22 00:46:29 +01:00
parent 954562881a
commit 06c323ab91
3 changed files with 192 additions and 118 deletions

View file

@ -7,6 +7,7 @@ authors = ["ducklet <ducklet@noreply.code.dumpr.org>"]
[tool.poetry.dependencies]
python = "^3.8"
SQLAlchemy = "^1.4.35"
wcwidth = "^0.2.5"
[tool.poetry.dev-dependencies]