tmux.ts - v0.1.3
    Preparing search index...

    Variable sendKeysConst

    sendKeys: (
        ...args: [
            keys: readonly string[],
            options?: {
                expandFormats?: boolean;
                hex?: boolean;
                literal?: boolean;
                repeatCount?: number;
                reset?: boolean;
                targetPane?: string;
            },
        ],
    ) => Effect<
        string,
        TmuxCommandOptionsError
        | TmuxProcessRunError,
        TmuxProcess,
    > = ...

    Send keys to a tmux pane (tmux send-keys).

    Type Declaration

      • (
            ...args: [
                keys: readonly string[],
                options?: {
                    expandFormats?: boolean;
                    hex?: boolean;
                    literal?: boolean;
                    repeatCount?: number;
                    reset?: boolean;
                    targetPane?: string;
                },
            ],
        ): Effect<
            string,
            TmuxCommandOptionsError
            | TmuxProcessRunError,
            TmuxProcess,
        >
      • Parameters

        • ...args: [
              keys: readonly string[],
              options?: {
                  expandFormats?: boolean;
                  hex?: boolean;
                  literal?: boolean;
                  repeatCount?: number;
                  reset?: boolean;
                  targetPane?: string;
              },
          ]

        Returns Effect<string, TmuxCommandOptionsError | TmuxProcessRunError, TmuxProcess>

        An empty string on success.

    await tmux.sendKeys(["echo hi", "Enter"], { targetPane: "work:1.1" });