mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Moved cursor to selected items in browser and deletion dialog for improved accessibility
git-svn-id: svn://blicky.net/ncdu/trunk@34 ce56bc8d-f834-0410-b703-f827bd498a76
This commit is contained in:
parent
cd2ade76c6
commit
9e2eb51ef4
3 changed files with 6 additions and 0 deletions
|
|
@ -297,6 +297,9 @@ void drawBrowser(int change) {
|
|||
attroff(A_REVERSE);
|
||||
}
|
||||
|
||||
/* move cursor to selected row for accessibility */
|
||||
move(selected+2, 0);
|
||||
|
||||
/* remove reference to parent dir */
|
||||
if(bcur == &ref)
|
||||
bcur = ref.next;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ void drawConfirm(struct dir *del, int sel) {
|
|||
ncaddstr(4, 31, "don't ask me again");
|
||||
attroff(A_REVERSE);
|
||||
|
||||
ncmove(4, sel == 0 ? 15 : sel == 1 ? 24 : 31);
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@
|
|||
/* check nccreate in util.c for more info on these defines */
|
||||
#define ncaddstr(r, c, s) mvaddstr(subwinr+(r), subwinc+(c), s)
|
||||
#define ncaddch(r, c, s) mvaddch(subwinr+(r), subwinc+(c), s)
|
||||
#define ncmove(r, c) move(subwinr+(r), subwinc+(c))
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue