Shift+Enter not adding new line
What happened?
I press Shift + Enter and it submits my text as if I wasn't pressing Shift.
What did you expect to happen?
Shift+Enter would add a new line
Client information
$ gemini /about
╭─────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.1.3 │
│ Git Commit 382486e (local modifications) │
│ Model gemini-2.5-pro │
│ Sandbox no sandbox │
│ OS linux │
│ │
Some more information: I'm on PopOS 22 using Alacritty and tmux
Login information
Licensed code assist user
Anything else we need to know?
Workaround is to use
Ctrl + j
Interesting - haven't seen that on *nix. #1699 details a macOS issue but I'll leave this open for this OS.
I also ran into this issue. Upon some further testing I also noticed that Xterm-style CSI sequences aren't interpreted for shift+enter (in modern terminals like ghostty)
upon pressing shift+enter:
╭─────────────────────────╮
│ > [27;2;13~ │
╰─────────────────────────╯
Perhaps interpreting these control sequences can be added?
I'm having the same issue, but interestingly, it arises only when I launch the terminal in VSCode, but not in iTerm2.
FYI, I'm using:
gemini-cli, 0.1.4zsh 5.9 (arm-apple-darwin23.0.0)vscode 1.101.2iterm2 3.5.14
I have the same problem, using:
- Fish 4.0.2
- Gemini 0.1.4
Same issue:
- Win10 1904 Windows Terminal
- PowerShell 7.5.0
use ALT+ENTER
@ACCGAGTT Hi is Alt + Enter for Windows Terminal? Does Shift + Enter not work on Windows terminal/powershell for you?
@ACCGAGTT Hi is Alt + Enter for Windows Terminal? Does Shift + Enter not work on Windows terminal/powershell for you?
i have mine installed on RHEL10 terminal with bash-it , did not try it on Windows just yet. If you like i can test
@ACCGAGTT Ah ok but Shift + Enter doesn't work on RHEL10 either for you? Yupp if you can test on Windows too that'd be great!
@ACCGAGTT Ah ok but Shift + Enter doesn't work on RHEL10 either for you? Yupp if you can test on Windows too that'd be great!
correct shift+enter is non functional on RHEL
@ACCGAGTT Hmm I assume then maybe it is a linux issue? Since the original issue was in Pop OS and you say in Red Hat it's the same
WezTerm on macos toggles maximizing the window with alt-enter. Working alternatives are alt-shift-enter, alt-cmd-enter and ctrl-J.
add the following to your Wezterm config to unbind alt-enter
config.keys = {
{
key = "Enter",
mods = "ALT",
action = wezterm.action.DisableDefaultAssignment,
},
}