Hacker News new | past | comments | ask | show | jobs | submit login

You need to wrap the escapes in \[ \] to tell bash (actually readline) that these characters do not advance the cursor when printed.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: