Vibe.TUI.TextTruncation (vibe v0.2.1)

Copy Markdown View Source

Line truncation with omission hints for tool output.

Summary

Types

result()

@type result() :: %Vibe.TUI.TextTruncation{
  lines: [IO.chardata()],
  omitted: non_neg_integer(),
  truncated?: boolean()
}

Functions

hint(omitted, theme, width, opts \\ [])

lines(lines, opts \\ [])

@spec lines(
  [IO.chardata()],
  keyword()
) :: result()