<@U06RMLQGNGM> i'm supporting ability to write mul...
# proj-agent-canvas
q
@breezy-kilobyte-39430 i'm supporting ability to write multi line prompts in the CLI The typical "Shift + enter" doesn't work in most terminals, is there an alternate interaction you had in mind for indicating the user can do multiline inputs? (e.g "escape" followed by "enter", or "ctrl + j")
b
great question, let me look up a standard, also what happens if a user copy pastes something with line breaks?
q
image.png
new lines wrap as expected
or i can make it so that multiline input is always enabled only an empty line will submit the request
b
Are you using shift enter?
q
Just regular enter It does multiline by default
I can make exceptions based on the command (e.g /help should not be multiline)
b
Oh I see, so then there's a hotkey for submit?
q
It submits only when I press regular enter + the current line is empty (but I can make this a hotkey as well)
So i can't do two new lines consecutively lolsob I was just demonstrating that i can override regular enter keys
b
So does that mean it will first drop a line of first enter, then if line is empty it will submit? Meaning, two enters=submit?
nod 1
w
how does claude code behave?
or codex
or opencode
b
Quick lookup suggests shift-enter, confirming.
"Without setup, you can type \ followed by Enter to create a newline"
w
that's a pretty good workaround
b
\+Enter = new line by default Claude code allows /terminal-setup to configure shift+enter
image.png
w
love it. I'd say we support
\
for now and we can add setup for the other options later
acknowledged 1
q
lolsob
lolsob 1
w
Breaking news: devs have extremely strong and conflicting opinions 🙃