Multi-line Input
There are two ways to enter multi-line messages: Alt+Enter , Ctrl+J , or Shift+Enter - inserts a new line Backslash continuation - end a line with \ to continue: Ctrl+J and backslash continuation are enabled by default, matching Claude Code / Codex / OpenCode multiline shortcuts. On supported terminals such as iTerm2, Hermes also requests extended key reporting so Shift+Enter arrives as a distinct newline key. If your terminal sends LF for plain Enter and you need the legacy Ctrl+J -as-submit fallback, opt out: info Pasting multi-line text is supported - use any of the newline keys above, or simply paste content directly. In terminals using the Kitty keyboard protocol, Alt+Enter on the numeric keypad also inserts a newline, including next to a collapsed paste. Modified keypad navigation keys follow their non-keypad equivalents.
From the official Hermes Agent documentation.
❯ Write a function that:\
1. Takes a list of numbers\
2. Returns the sum