LibTmux.Mcp.BoundedText.Fit
- LibTmux.Mcp.BoundedText.Fit ( lines : IRead
Only <string> , maxLines : int? , maxBytes : int ) BoundedList Text -
Cuts lines down to a line and byte budget, keeping the newest.
- Parameters
-
-
lines ( IRead
Only <string> ) – The captured text, oldest first.List -
maxLines ( int? ) – The most lines to keep, or null for no line limit.
-
maxBytes ( int ) – The most UTF-8 bytes to keep.
-
- Returns
-
The text that fits, and what it cost to make it fit.