tests/test-ui-color.py
author Martin Geisler <mg@lazybytes.net>
Sun, 27 Mar 2011 12:59:25 +0200
changeset 13774 1ce0e80799c0
parent 12865 4c50552fc9bc
child 14516 842a9179132c
permissions -rw-r--r--
ui: label prompts, default to yellow prompts

from hgext import color

# ensure errors aren't buffered
testui = color.colorui()
testui.pushbuffer()
testui.write('buffered\n')
testui.warn('warning\n')
testui.write_err('error\n')
print repr(testui.popbuffer())