Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmux.Mcp.BoundedText.Fit

.NET
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

LibTmux.Mcp.BoundedText.Fit ( lines : IReadOnlyList<string> , maxLines : int? , maxBytes : int ) → BoundedText
methodstatic [source]
methodstatic [source]
LibTmux.Mcp.BoundedText.Fit

Cuts lines down to a line and byte budget, keeping the newest.

Parameters
  • lines ( IReadOnlyList<string> ) – The captured text, oldest first.

  • 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.

Esc

Type to search.