Feature request: Escaping special characters in 'select' list

2007-06-27 Thread Bernd Eggink
It would be nice if special characters in a 'select' list could be escaped 
by \[ and \], like in a prompt string. Presently, if a word in the list 
contains special characters (e.g., '^[[42m;aha^[[0m;'), the formatting of 
the list gets messed up.


COLUMNS=50
select a in "^[[42maha^[[0m" one two three; do : ; done

1) aha   3) two
2) one   4) three
#?

(On a terminal, the first word has a green background).

Regards,
Bernd

--
Bernd Eggink
[EMAIL PROTECTED]
http://monoped.de


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: Composed characters + colour = strange cursor behaviour

2007-06-27 Thread Benno Schulenberg
Tristan Miller wrote:
> However, there still seems to be a problem when multibyte
> characters appear in the prompt in the last column of the
> terminal window. Specifically, when the last character in a line
> is multibyte, it is sometimes printed as "��".
>
> I initially thought that this was a terminal bug, but perhaps
> it's a Bash bug.  Others think so too.  See
>  for the bug report
> for konsole, including a screenshot showing the problem.

This is probably related to the problem reported here:
http://lists.gnu.org/archive/html/bug-bash/2007-05/msg00013.html

Benno



___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash