fix: use pyte terminal emulator for screenshot rendering

Replaces simple carriage return handling with pyte terminal emulator
to properly interpret all ANSI escape sequences including cursor
positioning. This fixes the tmux status bar 'creeping up' issue in
screenshots.

Adds pyte dependency to pyproject.toml.

Resolves TODO item #2.
This commit is contained in:
GitHub Copilot
2026-01-24 10:23:31 +00:00
parent c873ed2b2e
commit 33da0e335c
3 changed files with 33 additions and 24 deletions
+1
View File
@@ -21,6 +21,7 @@ importlib-metadata = ">=6.0.0"
httpx = ">=0.27.0"
tomli = { version = "^2.0.1", python = "<3.11" }
pyyaml = "^6.0.0"
pyte = "^0.8.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"