Skip to content

[BUG] Terminal TUI does not insert a new line with Shift+Enter; only Ctrl+J works #2960

Closed as duplicate

Description

@H0llyW00dzZ

The Terminal TUI does not recognize Shift+Enter as a new line input. Only Ctrl+J successfully inserts a new line.

Here’s a screen recording demonstrating the issue:

Screencast.From.2025-10-04.08-23-21.mp4

Activity

  1. github-actions commented on Oct 4, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 4, 2025

    @rekram1-node
    Contributor

    @H0llyW00dzZ what terminal are you using?

  3. H0llyW00dzZ commented on Oct 4, 2025

    @H0llyW00dzZ
    Author

    @H0llyW00dzZ what terminal are you using?

    @rekram1-node I'm using the default terminal that comes with Ubuntu 25.04 (Plucky Puffin)—that’s the distro I’ve been using.

  4. H0llyW00dzZ commented on Oct 4, 2025

    @H0llyW00dzZ
    Author

    It's GNOME 48

  5. H0llyW00dzZ commented on Oct 4, 2025

    @H0llyW00dzZ
    Author

    I also found a workaround: if start the line with a backslash (\) and then press Shift+Enter, it works as expected.

    Here’s a screen recording demonstrating this:

    Screencast.From.2025-10-04.09-45-07.mp4

    It might also be helpful to automatically insert a backslash when Shift+Enter is pressed—consider adding this in a future update.

  6. rekram1-node commented on Oct 4, 2025

    @rekram1-node
    Contributor

    this is a duplicate of: #1505

  7. rekram1-node commented on Oct 4, 2025

    @rekram1-node
    Contributor

    The issue here is opencode isn't able to capture the shift+enter at all it isn't an issue of issuing a backslash vs a newline

    Normally this is because you have a conflicting keybind causing shift+enter isn't sending the correct thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions