mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-14 17:58:40 -09:00
browser.c: Added [read-only] indication to title bar
This commit is contained in:
parent
260f138d3f
commit
53e3bcbd2b
1 changed files with 2 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ void browse_draw() {
|
||||||
mvhline(0, 0, ' ', wincols);
|
mvhline(0, 0, ' ', wincols);
|
||||||
mvhline(winrows-1, 0, ' ', wincols);
|
mvhline(winrows-1, 0, ' ', wincols);
|
||||||
mvprintw(0,0,"%s %s ~ Use the arrow keys to navigate, press ? for help", PACKAGE_NAME, PACKAGE_VERSION);
|
mvprintw(0,0,"%s %s ~ Use the arrow keys to navigate, press ? for help", PACKAGE_NAME, PACKAGE_VERSION);
|
||||||
|
if(read_only)
|
||||||
|
mvaddstr(0, wincols-11, "[read-only]");
|
||||||
attroff(A_REVERSE);
|
attroff(A_REVERSE);
|
||||||
|
|
||||||
/* second line - the path */
|
/* second line - the path */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue