Changeset 600 for cly/trunk/cly/console.py
- Timestamp:
- 17/04/09 14:11:50 (16 months ago)
- Files:
-
- 1 modified
-
cly/trunk/cly/console.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cly/trunk/cly/console.py
r590 r600 37 37 cwrite getch cerror cfatal register_codec cinfo cjustify clen cprint cprintstrip 38 38 csplice cwarning cwraptext print_table rjustify termheight termwidth wraptoterm 39 cencode cdecode 39 40 """.split() 40 41 … … 310 311 return (_encode, _decode, _CodecStreamReader, _CodecStreamWriter) 311 312 return codecs.register(inner_register) 313 314 315 def cencode(text): 316 """Encode to CLY colour-encoded text.""" 317 return _encode(text)[0] 318 319 320 def cdecode(text): 321 """Decode CLY colour-encoded text. 322 323 Use this to convert '^Bfoo^N' to the ANSI equivalent. 324 """ 325 return _decode(text)[0] 312 326 313 327
