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
Этот коммит содержится в:
родитель
cd2ade76c6
Коммит
9e2eb51ef4
@ -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;
|
||||
|
@ -48,6 +48,8 @@ void drawConfirm(struct dir *del, int sel) {
|
||||
attron(A_REVERSE);
|
||||
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))
|
||||
|
||||
|
||||
/*
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user