Commit graph

23 commits

Author SHA1 Message Date
Griatch
7de036c1d9 Merged nested inlinefuncs from the dev branch. Added |-style ansi-markers. Resolves #818. 2015-11-28 20:30:01 +01:00
Griatch
492e2e2411 Put back standard {-style ansi background colors that were accidentally removed. 2015-11-28 18:25:05 +01:00
Griatch
419ff1cc79 Added |-style color markings (in parallel with {-style ones) as per #818 as a test for public review. 2015-11-28 18:25:05 +01:00
Ahmed Charles
bcd8674ef3 Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Ahmed Charles
11b61fe335 Import python3 compatible object. 2015-11-02 00:19:04 +01:00
Ahmed Charles
cbe1eefcf0 Move to python3 style division.
All of these are currently integer division in python2.
2015-11-01 20:47:18 +00:00
Ahmed Charles
99f0fec7cf Use comprehension rather than map. 2015-11-01 21:16:41 +01:00
Ahmed Charles
8a66fc40a9 Use with_metaclass from future.utils for python3 compat. 2015-11-01 15:11:12 +01:00
Ahmed Charles
bc340fbf0d Remove commented out print statements. 2015-10-19 23:31:19 +02:00
Griatch
eb2bd8d44c Converted a large part of utils/ folder to google code docstrings as per #709. 2015-09-27 20:24:03 +02:00
Jake Shasteen
7d3ed681ac Added {u to the ansi parser for underlining text. 2015-08-15 00:33:57 -04:00
Griatch
8c5dddd062 Added ansi.strip_ansi as a convenience shortcut to remove ansi markup from a string. 2015-07-09 14:37:09 +02:00
Griatch
8d37627dfe Fixed a bug in ansi string caching that didn't take mxp into account. 2015-07-09 14:37:09 +02:00
Griatch
a2500389e4 Removed long deprecated %c-style color syntax as per #683. 2015-05-17 14:42:10 +02:00
Griatch
c524e3f297 Added support bright highlighted backgrounds using xterm256 wrapper (will fallback to standard ANSI if not supported). Also made normal-color tags use the unhilight ANSI tag rather than the full normal-tag making them work better with backgrounds. Also added {H as the unhilight tag. See #725. 2015-03-24 12:31:19 +01:00
Griatch
3f1a887841 Made numberered lists with full numbers for clarity when reading sources. See #724. 2015-03-22 10:07:37 +01:00
Jonathan Piacenti
b50dbdc651 Fix bug with ANSI concatination. 2015-03-12 08:31:26 +01:00
Jonathan Piacenti
571b1d5fad Added m_len and made ANSIString ignore MXP. 2015-03-12 08:31:25 +01:00
tajmone
972b5cd2e2 docstrings and typos in "\utils\" and "\scripts\" 2015-03-09 11:33:55 +01:00
Griatch
94b8532f59 Added highlitable color tags on the form {\!R, {\!G etc to make the features of %c-type commands (highlightability) available also to {-type commands. See #683. 2015-03-07 19:14:09 +01:00
Griatch
caa9dbccaf Partial solution of #625 - introduced a merged regex to correctly sync the ANSIString table with the clean version produced by ansi_parse. Something is still amiss though, since len(ANSIString({lclook{lttest{le)) != len(ANSIString({lclook{lttest{le).split(n)[0]) 2015-03-07 18:17:03 +01:00
Griatch
ad3f19896c Changed all src/ and ev references to evennia 2015-01-07 15:36:32 +01:00
Griatch
c7325a5032 Further reworking, naming the library folder 'evennia' instead of lib or src. 2015-01-07 13:36:57 +01:00
Renamed from lib/utils/ansi.py (Browse further)