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

send_keys

Send input to a pane’s program; a shell that receives it runs it with your user’s permissions. Sends keys to a pane and to every pane synchronize-panes links it with; the ids reported are the panes checked before sending, not proof that each one received the keys.

All Go tools · JSON · Source

Arguments

enter optional · boolean
press Enter after keys, as a real key press, to submit them
keys required · null | array
key names or literal strings to send; do not put "Enter" here when literal is true, it types the five letters - set enter instead
literal optional · boolean
send strings literally instead of as key names
pane_id required · string
the pane id, such as %1

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"enter": {
"description": "press Enter after keys, as a real key press, to submit them",
"type": "boolean"
},
"keys": {
"description": "key names or literal strings to send; do not put \"Enter\" here when literal is true, it types the five letters - set enter instead",
"items": {
"type": "string"
},
"type": [
"null",
"array"
]
},
"literal": {
"description": "send strings literally instead of as key names",
"type": "boolean"
},
"pane_id": {
"description": "the pane id, such as %1",
"type": "string"
}
},
"required": [
"pane_id",
"keys"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"pane_id": {
"type": "string"
},
"resolved_pane_ids": {
"items": {
"type": "string"
},
"type": [
"array"
]
},
"sent": {
"type": "integer"
}
},
"required": [
"pane_id",
"resolved_pane_ids",
"sent"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Send keys"
}
Esc

Type to search.