help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] color in bash read builtin prompt


From: Patrick Byrne
Subject: [Help-bash] color in bash read builtin prompt
Date: Fri, 17 Oct 2014 11:20:33 +0100

Hi,

I am finding that color codes are not recognised in a 'read' prompt:
read -e -p "\x1b[31mtarget_dir:${rst} " -i "${default_target_dir}"
target_dir

output:
^[[0;31;40mtarget_dir:\x1b[0m /home/digital/python_1411

Is there a way around this please?


-- 
Patrick Byrne


reply via email to

[Prev in Thread] Current Thread [Next in Thread]