mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Made XTERM256 properly range between 0-5 (it was erroneously capped at 1-5 which mean the darkest values
of the colour cube were unreachable). Fixed some issues with the lock caching.
This commit is contained in:
parent
73ff2afc78
commit
ed6def0c88
4 changed files with 32 additions and 17 deletions
|
|
@ -123,10 +123,10 @@ class ANSIParser(object):
|
|||
# xterm256 {123, %c134,
|
||||
|
||||
self.xterm256_map = [
|
||||
(r'(?<!\\)%c([1-5]{3})', self.parse_rgb), # %c123 - foreground colour
|
||||
(r'(?<!\\)%c(b[1-5]{3})', self.parse_rgb), # %cb123 - background colour
|
||||
(r'(?<!\\){([1-5]{3})', self.parse_rgb), # {123 - foreground colour
|
||||
(r'(?<!\\){(b[1-5]{3})', self.parse_rgb) # {b123 - background colour
|
||||
(r'(?<!\\)%c([0-5]{3})', self.parse_rgb), # %c123 - foreground colour
|
||||
(r'(?<!\\)%c(b[0-5]{3})', self.parse_rgb), # %cb123 - background colour
|
||||
(r'(?<!\\){([0-5]{3})', self.parse_rgb), # {123 - foreground colour
|
||||
(r'(?<!\\){(b[0-5]{3})', self.parse_rgb) # {b123 - background colour
|
||||
]
|
||||
|
||||
# obs - order matters here, we want to do the xterms first since
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue