summaryrefslogtreecommitdiffstats
path: root/src/askloc.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-05-21 08:47:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-05-21 08:47:38 +0200
commit1041c240cd39711ca664386740e7cfb699819cb7 (patch)
tree4700efa276e48a3a725af5c2e5a6393221bdabce /src/askloc.c
parent969996230f5c3843b0e3f4098b09bce5d69b9837 (diff)
Prefix highligted selection by ">", so screen reader software find the
interface less confusing.
Diffstat (limited to 'src/askloc.c')
-rw-r--r--src/askloc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/askloc.c b/src/askloc.c
index c2a3aa8..1bc27f3 100644
--- a/src/askloc.c
+++ b/src/askloc.c
@@ -268,10 +268,17 @@ char *ask_location(const char*msg, const char *src_dir, const char *dst_org)
wmove(window,8-1+i-offset,0);
wclrtoeol(window); /* before addstr for BSD compatibility */
if(file_walker==current_file)
+ {
wattrset(window, A_REVERSE);
- dir_aff_entry(window,file_info);
- if(file_walker==current_file)
+ waddstr(window, ">");
+ dir_aff_entry(window,file_info);
wattroff(window, A_REVERSE);
+ }
+ else
+ {
+ wprintw(window, " ");
+ dir_aff_entry(window,file_info);
+ }
}
if(offset+INTER_DIR<=i)
break;