Skip to content

Bug: Ctrl+U does not clear current line in embedded terminal #1658

@lobre

Description

@lobre

What Happened?

In the embedded terminal inside Code, the keyboard shortcut Ctrl+U doesn’t work as expected.

In most terminals (and in any standard shell using GNU Readline or similar), Ctrl+U is the default shortcut to clear the current line — deleting all text from the cursor back to the start of the line.

This behavior works correctly in elementary Terminal and most other terminal emulators, but not inside Code’s embedded terminal.

Steps to Reproduce

  1. Open Code.
  2. Open the embedded terminal (bottom panel).
  3. Type any command (e.g., echo hello world).
  4. Press Ctrl+U.

Expected Behavior

Expected result:

The current line should be cleared, just like in any standard readline-based terminal.

Actual result:

Nothing happens — the keybinding appears to be ignored.

OS Version

8.x (Circe)

OS Architecture

amd64 (on most hardwares)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Gtk4Associated with Gtk4 porting or requires Gtk4 to fixStatus: ConfirmedVerified by someone other than the reporter

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions