Show More
@@ -539,6 +539,10 b' def extsetup(ui):' | |||||
539 | @command('debugcolor', [], 'hg debugcolor') |
|
539 | @command('debugcolor', [], 'hg debugcolor') | |
540 | def debugcolor(ui, repo, **opts): |
|
540 | def debugcolor(ui, repo, **opts): | |
541 | """show available colors and effects""" |
|
541 | """show available colors and effects""" | |
|
542 | ui.write(('color mode: %s\n') % ui._colormode) | |||
|
543 | return _debugdisplaycolor(ui) | |||
|
544 | ||||
|
545 | def _debugdisplaycolor(ui): | |||
542 | global _styles |
|
546 | global _styles | |
543 | oldstyle = _styles |
|
547 | oldstyle = _styles | |
544 | try: |
|
548 | try: | |
@@ -551,7 +555,6 b' def debugcolor(ui, repo, **opts):' | |||||
551 | _styles[k] = k[6:] |
|
555 | _styles[k] = k[6:] | |
552 | elif k.startswith('terminfo.'): |
|
556 | elif k.startswith('terminfo.'): | |
553 | _styles[k] = k[9:] |
|
557 | _styles[k] = k[9:] | |
554 | ui.write(('color mode: %s\n') % ui._colormode) |
|
|||
555 | ui.write(_('available colors:\n')) |
|
558 | ui.write(_('available colors:\n')) | |
556 | for colorname, label in _styles.items(): |
|
559 | for colorname, label in _styles.items(): | |
557 | ui.write(('%s\n') % colorname, label=label) |
|
560 | ui.write(('%s\n') % colorname, label=label) |
General Comments 0
You need to be logged in to leave comments.
Login now