[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] read -ep and ANSI colour sequences
From: |
muji |
Subject: |
[Help-bash] read -ep and ANSI colour sequences |
Date: |
Wed, 20 Feb 2013 11:01:48 +0100 |
Hi,
I would like to use ANSI colour sequences when showing a prompt using
read -ep but I can't figure out how to do this. Is this possible? Am I
missing something? Using standard escape sequences does not appear to
work, my current test code looks like:
read -ep "\033[1mABC\033[0m" value;
Using echo -e the output is bold as expected:
echo -e "\033[1mABC\033[0m";
I cannot see any option in `bash help read` that affects ANSI escape
sequences. I suspect escaping is different in this instance, but my
experiments have not yielded anything so far. Any pointers much
appreciated!
--
mischa (aka muji).
- [Help-bash] read -ep and ANSI colour sequences,
muji <=
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris F.A. Johnson, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Pierre Gaston, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Pierre Gaston, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, muji, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Greg Wooledge, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, muji, 2013/02/20