The prompt line (composer) of a Claude Code pane: type text into it and, for a slash command, read it back before submitting it.
Stratum: Pipeline, under hive-tmux.claude.compact. Every effect (tmux,
sleep) goes through the host port.
The prompt line (composer) of a Claude Code pane: type text into it and, for a slash command, read it back before submitting it. Stratum: Pipeline, under `hive-tmux.claude.compact`. Every effect (tmux, sleep) goes through the host port.
(holds? text input)Does INPUT, the text a pane's composer shows, hold TEXT as it was typed?
Whitespace is ignored, since a long line wraps inside the prompt box, and a
tail after TEXT is allowed, since Claude Code draws a dim argument hint
after a slash command. A paste collapsed to [Pasted text #1 +4 lines],
or a command that lost its /, does not hold it.
Does INPUT, the text a pane's composer shows, hold TEXT as it was typed? Whitespace is ignored, since a long line wraps inside the prompt box, and a tail after TEXT is allowed, since Claude Code draws a dim argument hint after a slash command. A paste collapsed to `[Pasted text #1 +4 lines]`, or a command that lost its `/`, does not hold it.
(input-now h pane-id)What the composer of PANE-ID shows now, read from its screen. Nil when it is empty or the screen cannot be read.
What the composer of PANE-ID shows now, read from its screen. Nil when it is empty or the screen cannot be read.
(send-text! {:keys [tmux! sleep!] :as h} pane-id text vim-mode)Type TEXT into PANE-ID and submit it. One line goes as literal keys; text with newlines is pasted as one bracketed frame so no LF submits early. A pane in vim NORMAL mode is put in insert mode first.
A slash command is read back before Enter: Claude Code runs it only when
the composer still starts with it, and a paste collapsed to [Pasted text]
or a dropped / would go out as a plain prompt instead. Then Enter is not
pressed and the text stays in the composer. Returns {:submitted? true}, or
{:submitted? false :composer <what the composer showed>}.
Type TEXT into PANE-ID and submit it. One line goes as literal keys; text
with newlines is pasted as one bracketed frame so no LF submits early. A
pane in vim NORMAL mode is put in insert mode first.
A slash command is read back before Enter: Claude Code runs it only when
the composer still starts with it, and a paste collapsed to `[Pasted text]`
or a dropped `/` would go out as a plain prompt instead. Then Enter is not
pressed and the text stays in the composer. Returns {:submitted? true}, or
{:submitted? false :composer <what the composer showed>}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |