ui: ellipsize fake-terminal pane lines wider than the terminal

Overflowing log lines in the pkh deb / pkh build rolling pane used to
wrap onto a second line, corrupting the pane layout. Truncate them to
the terminal width (minus the pane prefix) by display width and append
an ellipsis instead; lines are left whole when the terminal size is
unknown.
This commit is contained in:
2026-09-20 00:15:37 +02:00
parent a0e74073bf
commit d1056fbbbf
2 changed files with 146 additions and 5 deletions
+1
View File
@@ -34,6 +34,7 @@ ssh2 = "0.9.5"
gpgme = "0.11"
serde_yaml = "0.9"
lazy_static = "1.4.0"
unicode-width = "0.2"
[dev-dependencies]
test-log = "0.2.19"