Core LibraryalphaAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

function libtmux-elixir latest

Pane.send_keys/4

Sends 1..128 named keys to an exact pane; unknown names are rejected.

Source and package
Qualified name
LibTmux.Pane.send_keys/4
Module
LibTmux
Declared in
Pane
Package
libtmux
Source
lib/libtmux/entities.ex
send_keys(connection, ref, keys, options \\ []) @spec send_keys( LibTmux.Action.connection(), LibTmux.Ref.t(), [String.t()], [LibTmux.Action.option()] ) :: {:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}

Description#

Supports Enter, Space, Tab, BTab, BSpace, Escape, arrows, Home, End, PageUp, PageDown, Insert, Delete and F1..F12. Distinct C-, M- and S- modifiers may prefix arrows, Home/End, PageUp/PageDown, Insert/Delete and F1..F12. Also accepts C-a..C-z, conventional ASCII control punctuation, and M- plus one printable ASCII character. Unsupported combinations such as S-a and C-Enter fail before admission; tmux could otherwise type their spelling as text. Options and outcomes follow LibTmux.Action .

alias LibTmux.Pane

Pane.send_keys(control, pane_ref, ["Enter", "C-c"])

Esc

Type to search.

Reference preview Open reference