Ticket #3241: colon was not recognized inside escape seq in prompt.
commita3d75ae300c9a3150125324ae64db0b19506dadf
authorEgmont Koblinger <egmont@gmail.com>
Wed, 3 Sep 2014 07:31:14 +0000 (3 11:31 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Wed, 3 Sep 2014 07:31:14 +0000 (3 11:31 +0400)
tree64526678f8aef1a57da4e1e79eaae66f9d1feb4a
parentd6004701ccb58599547313536be5d54c056a84ff
Ticket #3241: colon was not recognized inside escape seq in prompt.

export PS1=$'\[\e[38:5:214m\]orange$\[\e[0m\]'
mc

Expected: "orange$" prompt shows up in black under the panels.
Actual: some additional garbage.

The 256-color and true-color escape sequences should allow either ';' or
':' inside as separator, actually, ':' is the more correct according to
ECMA-48. Some terminal emulators (e.g. xterm, gnome-terminal) support
this.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/util.c