Ctrl+B Keybinding Conflict on Linux (Ubuntu)

Status Fixed / completed
Maintainer reply None cached
Activity 6 comments · opened Aug 8, 2025 · closed Aug 15, 2025

Issue Description

The Ctrl+B hotkey for running background commands in Claude Code conflicts with the default linux terminal keybinding for moving the cursor backward by one character.

Closely related with the same problem on Macos: https://github.com/anthropics/claude-code/issues/5376

Problem Details

Claude Code Version: 1.0.71+ (feature introduced in 1.0.71)
Platform: Linux (tested on Ubuntu 24.04)
Conflicting Keybinding: Ctrl+B is a standard Unix terminal keybinding for backward cursor movement
Expected Feature: Run Bash commands in background while Claude continues working

Impact

Linux users cannot use the background command feature as the system intercepts Ctrl+B for cursor navigation, preventing Claude Code from receiving the keystroke.

Reproduction Steps

Open Claude Code on Linux
Try to use Ctrl+B to run a command in background
Observe that cursor moves backward instead of triggering background execution

Suggested Solutions

Add configurable keybindings: Allow users to customize the background command hotkey through settings.json
Use different default on Linux: Detect Linux and use an alternative default keybinding (e.g. Ctrl+Shift+B)
Multiple keybinding options: Support multiple keybindings for the same action

Workaround

Currently, there is no workaround. Even if user disables the readline keybinding in shell, in Claude Code the behaviour is not altered (while in bash directly ctrl+b no longer trigger pointer move backward, in Claude Code it still does).

View original on GitHub ↗

6 Comments

github-actions[bot] · 1 year ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/5376

If your issue is a duplicate, please close it and 👍 the existing issue instead.

<sub>This issue will be automatically closed as a duplicate in 3 days if there are no additional comments. To prevent auto-closure, please 👎 this comment.</sub>

🤖 Generated with Claude Code

frodobaggins23 · 1 year ago

This bug is Linux related, so it is not a strict duplicate of #5376

kky42 · 1 year ago

Same in iterm terminal on MacOS

dblumenau · 1 year ago

Same in any terminal app on MacOS

frodobaggins23 · 1 year ago

I might have misunderstood how the feature works, or it was fixed in later versions.

Anyhow, it seems to be working now as described here:
https://github.com/anthropics/claude-code/issues/5376#issuecomment-3183064486

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.