fix: handle all pyte color formats for Rich compatibility

- Add 'brown' -> 'yellow' mapping (pyte uses 'brown' for ANSI yellow)
- Add helper function to convert hex colors (pyte outputs 'ff8700',
  Rich needs '#ff8700')
- Handles 256-color and truecolor (24-bit) ANSI codes properly

Bumps version to 0.1.14.
This commit is contained in:
GitHub Copilot
2026-01-24 11:21:09 +00:00
parent 4566d03aa5
commit 0d53952ff7
2 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual-webterm"
version = "0.1.13"
version = "0.1.14"
description = "Serve terminal sessions over the web"
authors = ["Will McGugan <will@textualize.io>"]
license = "MIT"