@nightgrey/ansi
    Preparing search index...

    Function tmuxPassthrough

    • Wraps the given ANSI sequence in a special DCS passthrough sequence to be sent to the outer terminal. This is used to send raw escape sequences to the outer terminal when running inside Tmux.

      DCS tmux ; <escaped-data> ST
      

      Where is the given sequence in which all occurrences of ESC (0x1b) are doubled i.e. replaced with ESC ESC (0x1b 0x1b).

      Note: this needs the allow-passthrough option to be set to on.

      Parameters

      • seq: string

        The ANSI sequence to wrap

      Returns string

      The wrapped sequence for Tmux passthrough