In a bash script, I redirect standard error to standard out in red color like so:
exec 2> >(sed $'s,.*,e[38;5;9;82m&e[m,'>&1)
However, this hides the prompt text of read:
read -p "prompt text " -n 1 -r
How to show the prompt text (possibly also in red color)?
Without the redirection, read works as expected.