Liking cljdoc? Tell your friends :D

hive-tmux.claude.composer

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.
raw docstring

holds?clj

(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.
sourceraw docstring

input-nowclj

(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.
sourceraw docstring

send-text!clj

(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>}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close