Skip to content

TUI: missing and conflicting Emacs key bindings in input editor #5083

@syf70

Description

@syf70

Bug

Several standard Emacs/readline key bindings are broken in the TUI input editor — some are unhandled, one is intercepted by a TUI shortcut.

Working bindings

  • Ctrl+A (beginning of line)
  • Ctrl+E (end of line)
  • Ctrl+K (kill to end of line)
  • Meta+F (forward word)
  • Meta+B (backward word)

Broken bindings

  • Ctrl+B (backward char) — does nothing
  • Ctrl+F (forward char) — does nothing
  • Ctrl+D (delete char) — mapped to "exit TUI" instead

Expected behavior

  • Ctrl+B moves cursor one character left
  • Ctrl+F moves cursor one character right
  • Ctrl+D deletes the character under the cursor (when input is non-empty)

Note: Ctrl+D sending EOF/exit on an empty input is standard terminal behavior and fine to keep. The issue is that it exits even when there is text in the editor, where Emacs users expect delete-char.

Environment

  • OpenClaw TUI
  • macOS (Terminal / iTerm2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivitytuiTerminal UI changes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions