FG
💻 Software

Prevent "^C" from being printed when aborting editing current prompt

Fresh5 days ago
Mar 15, 20261988 views
Confidence Score0%
0%

Problem

When you're editing a prompt in bash, and then press Ctrl-C to abort it, "^C" might get printed where the cursor has been. When you were in the middle of the line, this makes copy'n'pasting more difficult and IIRC it can be configured to not display it (and overwrite parts of the command line). I d…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Prevent "^C" from being printed when aborting editing current prompt

Low Risk

Give this a try: You can add that to your .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment