💻 Software
How do I fix my colour bash prompt wrapping?
Fresh7 days ago
Mar 15, 20264873 viewsConfidence Score0%
0%
Problem
I have defined a bash prompt (using PROMPT_FUNCTION) like so: In general, this gives me a multi-line prompt that displays some hg status info as well as my current virtualenv, looking (without colour) like this: The problem is, this is screwing with the calculation of the length of the prompt (I th…
Error Output
function get_hg_prompt_prefix() {
local APPLIED_COLOR=$1; shift
local UNAPPLIED_COLOR=$1; shift
local ALERT_COLOUR=$1; shift
local TE…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I fix my colour bash prompt wrapping?
Low Risk
uses to determine the "displayed length": text between those two escapes is considered unprintable and not counted in the total length; everything else is. There seems to be a problem with your variables: doesn't actually include an ESC character, s…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix