Show More
@@ -556,7 +556,10 b' def _debugdisplaycolor(ui):' | |||||
556 | elif k.startswith('terminfo.'): |
|
556 | elif k.startswith('terminfo.'): | |
557 | _styles[k] = k[9:] |
|
557 | _styles[k] = k[9:] | |
558 | ui.write(_('available colors:\n')) |
|
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 | ui.write(('%s\n') % colorname, label=label) |
|
563 | ui.write(('%s\n') % colorname, label=label) | |
561 | finally: |
|
564 | finally: | |
562 | _styles = oldstyle |
|
565 | _styles = oldstyle |
General Comments 0
You need to be logged in to leave comments.
Login now