# NousResearch/hermes-agent · Shift+Enter newline handling in terminal CLI/TUI prompts on macOS

## Open now

- 3 issues, 2 PRs open on GitHub.
- #22909: \[Bug\]: TUI multiline input has no reliable modified-Enter shortcut on macOS
- #35057: macOS iTerm2: Shift+Enter should insert newline in prompt_toolkit CLI
- #56407: \[Feature\]: add \`hermes terminal-setup\` for native Shift+Enter newline
- PR #44115: feat(cli): add backslash+Enter newline for terminals without Shift+Enter (#35057)
- PR #56587: feat(cli): add safe Shift+Enter terminal setup

Members cluster around multiline input in a terminal CLI/TUI, where Shift+Enter or other modified-Enter keys reportedly don't reliably insert a newline on macOS terminals (iTerm2, Terminal.app, Alacritty). They include bug reports plus proposed workarounds: backslash+Enter and a terminal-setup command.

## TL;DR

- 6 member(s): 3 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.21`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #22909: \[Bug\]: TUI multiline input has no reliable modified-Enter shortcut on macOS
- #35057: macOS iTerm2: Shift+Enter should insert newline in prompt_toolkit CLI
- #56407: \[Feature\]: add \`hermes terminal-setup\` for native Shift+Enter newline

## Closed / duplicate issues

- #24890: TUI: Shift+Enter submits instead of newline on macOS Terminal.app and Alacritty

## Prior & competing PRs

- **#44115: feat(cli): add backslash+Enter newline for terminals without Shift+Enter (#35057)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `bc86cf871182`
  - files: `cli.py`, `tests/cli/test_backslash_enter_newline.py`
- **#56587: feat(cli): add safe Shift+Enter terminal setup**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/main.py`, `hermes_cli/subcommands/terminal_setup.py`, `hermes_cli/terminal_setup.py`, `tests/hermes_cli/test_terminal_setup.py`

## Fix status

- No merged fix on record.
- Subsystem: `hermes_cli`
- Kind: `mixed` (from the open issues' GitHub type labels).
