##// END OF EJS Templates
color: sort output of 'debugcolor'...
Pierre-Yves David -
r30285:bb2dfc0e default
parent child Browse files
Show More
@@ -556,7 +556,10 b' def _debugdisplaycolor(ui):'
556 556 elif k.startswith('terminfo.'):
557 557 _styles[k] = k[9:]
558 558 ui.write(_('available colors:\n'))
559 for colorname, label in _styles.items():
559 # sort label with a '_' after the other to group '_background' entry.
560 items = sorted(_styles.items(),
561 key=lambda i: ('_' in i[0], i[0], i[1]))
562 for colorname, label in items:
560 563 ui.write(('%s\n') % colorname, label=label)
561 564 finally:
562 565 _styles = oldstyle
General Comments 0
You need to be logged in to leave comments. Login now