3 ms·
You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.
by mgedmin 14y ago
You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.