mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
UI: Add * indicator to apparent size/disk usage selection + spacing
Backport of zig/ca1f293310d5eaa00cf143f4c7e85965a4e76999
This commit is contained in:
parent
c08340ee08
commit
960661e93a
1 changed files with 6 additions and 3 deletions
|
|
@ -289,15 +289,18 @@ void browse_draw(void) {
|
|||
mvhline(winrows-1, 0, ' ', wincols);
|
||||
if(t) {
|
||||
if(!show_as) attron(A_BOLD);
|
||||
mvaddstr(winrows-1, 0, " Total disk usage: ");
|
||||
mvaddchc(UIC_HD, winrows-1, 0, show_as ? ' ' : '*');
|
||||
addstr("Total disk usage: ");
|
||||
if(!show_as) attroff(A_BOLD);
|
||||
printsize(UIC_HD, t->parent->size);
|
||||
if(show_as) attron(A_BOLD);
|
||||
addstrc(UIC_HD, " Apparent size: ");
|
||||
addstrc(UIC_HD, " ");
|
||||
addchc(UIC_HD, show_as ? '*' : ' ');
|
||||
addstrc(UIC_HD, "Apparent size: ");
|
||||
if(show_as) attroff(A_BOLD);
|
||||
uic_set(UIC_NUM_HD);
|
||||
printsize(UIC_HD, t->parent->asize);
|
||||
addstrc(UIC_HD, " Items: ");
|
||||
addstrc(UIC_HD, " Items: ");
|
||||
uic_set(UIC_NUM_HD);
|
||||
printw("%d", t->parent->items);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in a new issue