mkv2cast.ui.legacy_ui
Legacy text-based progress UI for mkv2cast.
Used when rich is not available or in non-interactive terminals.
Functions
|
Format seconds as HH:MM:SS. |
|
Create a simple progress bar string. |
|
Shorten a string with ellipsis if too long. |
Get terminal width. |
Classes
|
Fallback progress UI when rich is not available. |
|
State for legacy UI rendering. |
- mkv2cast.ui.legacy_ui.mkbar(pct: int, width: int = 26) str[source]
Create a simple progress bar string.
- mkv2cast.ui.legacy_ui.shorten(s: str, maxlen: int) str[source]
Shorten a string with ellipsis if too long.
- class mkv2cast.ui.legacy_ui.UIState(stage: str, pct: int, cur: int, total: int, base: str, eta: str, speed: str, elapsed: str = '')[source]
Bases:
objectState for legacy UI rendering.