diff options
| author | Karel Zak <kzak@redhat.com> | 2013-09-02 10:54:30 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-09-16 16:47:09 +0200 |
| commit | 80a1712f546eb0669c9e4130a32c78cdeeb5fdab (patch) | |
| tree | f62db3867f5e3aa18b2c36e2f7880e50569c513b /fdisks/fdisk-menu.c | |
| parent | a41309c2277aa5cc623288b3ea54516a80f7f6d2 (diff) | |
| download | util-linux-80a1712f546eb0669c9e4130a32c78cdeeb5fdab.tar.gz | |
fdisk: add -L to colorize output
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk-menu.c')
| -rw-r--r-- | fdisks/fdisk-menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fdisks/fdisk-menu.c b/fdisks/fdisk-menu.c index 3a5a5743..0ead2e47 100644 --- a/fdisks/fdisk-menu.c +++ b/fdisks/fdisk-menu.c @@ -326,9 +326,11 @@ int print_fdisk_menu(struct fdisk_context *cxt) while ((e = next_menu_entry(cxt, &mc))) { if (IS_MENU_HID(e)) continue; /* hidden entry */ - if (IS_MENU_SEP(e)) + if (IS_MENU_SEP(e)) { + color_enable(UL_COLOR_BOLD); printf("\n %s\n", _(e->title)); - else + color_disable(); + } else printf(" %c %s\n", e->key, _(e->title)); } fputc('\n', stdout); |
