FG

Mac Terminal/iTerm history cursor problems

Fresh3 days ago
Mar 15, 20262872 views
Confidence Score0%
0%

Problem

So often, I run a command in either Terminal.app or iTerm, press the up arrow to go back to edit it, and the cursor jumps to the line above or somewhere totally in the wrong place. It especially happens when the command is so long that it wraps around to the next line. Sometimes these long commands…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Mac Terminal/iTerm history cursor problems

Low Risk

It is most likely because your prompt definition includes sequences that should not be counted in the length of the prompt, such as those for setting colors. These sequences should be between and to prevent their length from being counted. Here is a…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment