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