Function convertLinkRangeToBuffer

  • Converts a possibly wrapped link's range (comprised of string indices) into a buffer range that plays nicely with xterm.js

    Parameters

    • lines: IBufferLine[]

      A single line (not the entire buffer)

    • bufferWidth: number

      The number of columns in the terminal

    • range: TerminalRange

      The link range - string indices

    • startLine: number

      The absolute y position (on the buffer) of the line

    Returns IBufferRange