summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/adv.c2
-rw-r--r--src/askloc.c11
-rw-r--r--src/chgtypen.c8
-rw-r--r--src/dirn.c6
-rw-r--r--src/fat_adv.c5
-rw-r--r--src/godmode.c2
-rw-r--r--src/intrface.c6
-rw-r--r--src/intrfn.c20
-rw-r--r--src/nodisk.c2
-rw-r--r--src/ntfs_udl.c5
-rw-r--r--src/partmacn.c2
-rw-r--r--src/pdisksel.c4
-rw-r--r--src/phrecn.c6
-rw-r--r--src/ppartsel.c2
-rw-r--r--src/tdisksel.c4
-rw-r--r--src/tload.c4
16 files changed, 62 insertions, 27 deletions
diff --git a/src/adv.c b/src/adv.c
index 60b5d7a..7921be3 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -236,10 +236,12 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
if(element==current_element)
{
wattrset(stdscr, A_REVERSE);
+ waddstr(stdscr, ">");
aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,element->part);
wattroff(stdscr, A_REVERSE);
} else
{
+ waddstr(stdscr, " ");
aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,element->part);
}
}
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;
diff --git a/src/chgtypen.c b/src/chgtypen.c
index 6c4f013..d5ff4d6 100644
--- a/src/chgtypen.c
+++ b/src/chgtypen.c
@@ -176,11 +176,11 @@ static void change_part_type_ncurses2(const disk_t *disk_car, partition_t *parti
if(i==current_element_num)
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"%s", part_name[i].name);
+ wprintw(stdscr,">%s", part_name[i].name);
wattroff(stdscr, A_REVERSE);
} else
{
- wprintw(stdscr,"%s", part_name[i].name);
+ wprintw(stdscr," %s", part_name[i].name);
}
}
if(i-offset<INTER_CHGTYPE)
@@ -289,11 +289,11 @@ static void gpt_change_part_type(const disk_t *disk_car, partition_t *partition)
if(i==current_element_num)
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"%s", gpt_sys_types[i].name);
+ wprintw(stdscr,">%s", gpt_sys_types[i].name);
wattroff(stdscr, A_REVERSE);
} else
{
- wprintw(stdscr,"%s", gpt_sys_types[i].name);
+ wprintw(stdscr," %s", gpt_sys_types[i].name);
}
}
if(i-offset<INTER_CHGTYPE)
diff --git a/src/dirn.c b/src/dirn.c
index b2683c7..2d47179 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -86,7 +86,12 @@ static long int dir_aff_ncurses(disk_t *disk, const partition_t *partition, dir_
wmove(window, 6+i-offset, 0);
wclrtoeol(window); /* before addstr for BSD compatibility */
if(current_file==pos)
+ {
wattrset(window, A_REVERSE);
+ waddstr(window, ">");
+ }
+ else
+ waddstr(window, " ");
if((current_file->status&FILE_STATUS_DELETED)!=0 && has_colors())
wbkgdset(window,' ' | COLOR_PAIR(1));
if(current_file->stat.st_mtime!=0)
@@ -356,6 +361,7 @@ static int dir_partition_aux(disk_t *disk, const partition_t *partition, dir_dat
dir_aff_log(dir_data, dir_list);
if(*current_cmd!=NULL)
{
+ /* TODO: handle copy_files */
dir_data->current_directory[current_directory_namelength]='\0';
delete_list_file(dir_list);
return -1; /* Quit */
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 5a48722..b7b2c6c 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -209,7 +209,12 @@ static int ask_root_directory(disk_t *disk_car, const partition_t *partition, co
wmove(window,8+i-offset,0);
wclrtoeol(window); /* before addstr for BSD compatibility */
if(current_file==pos)
+ {
wattrset(window, A_REVERSE);
+ waddstr(window, ">");
+ }
+ else
+ waddstr(window, " ");
if(current_file->stat.st_mtime!=0)
{
tm_p = localtime(&current_file->stat.st_mtime);
diff --git a/src/godmode.c b/src/godmode.c
index 1a46245..398e213 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -176,6 +176,7 @@ static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part)
{
char buffer_part_size[100];
wattrset(stdscr, A_REVERSE);
+ waddstr(stdscr, ">");
aff_part(stdscr, AFF_PART_BASE, disk_car, parts->part);
wattroff(stdscr, A_REVERSE);
wmove(stdscr,23,0);
@@ -187,6 +188,7 @@ static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part)
wprintw(stdscr,"%s",size_to_unit(parts->part->part_size,buffer_part_size));
} else
{
+ waddstr(stdscr, " ");
aff_part(stdscr, AFF_PART_BASE, disk_car, parts->part);
}
}
diff --git a/src/intrface.c b/src/intrface.c
index a41f3bc..b0312c1 100644
--- a/src/intrface.c
+++ b/src/intrface.c
@@ -132,11 +132,13 @@ static list_part_t *ask_structure_ncurses(disk_t *disk_car,list_part_t *list_par
wmove(stdscr,6+i-offset,0);
wclrtoeol(stdscr); /* before addstr for BSD compatibility */
if(parts==pos)
- {
wattrset(stdscr, A_REVERSE);
- }
if(structure_status==0 && parts->part->status!=STATUS_DELETED && has_colors())
wbkgdset(stdscr,' ' | COLOR_PAIR(2));
+ if(parts==pos)
+ waddstr(stdscr, ">");
+ else
+ waddstr(stdscr, " ");
aff_part(stdscr, AFF_PART_STATUS, disk_car, parts->part);
if(structure_status==0 && parts->part->status!=STATUS_DELETED && has_colors())
wbkgdset(stdscr,' ' | COLOR_PAIR(0));
diff --git a/src/intrfn.c b/src/intrfn.c
index ed35425..a2ea2e7 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -205,29 +205,30 @@ static int wmenuUpdate(WINDOW *window, const int yinfo, int y, int x, const stru
if(lenName >= itemLength)
{
if( menuType & MENU_BUTTON )
- snprintf(buff, sizeof(buff),"[%s]",mi);
+ snprintf(buff, sizeof(buff)," [%s]",mi);
else
- snprintf(buff, sizeof(buff),"%s",mi);
+ snprintf(buff, sizeof(buff)," %s",mi);
}
else
{
if( menuType & MENU_BUTTON )
{
if(menuType & MENU_VERT)
- snprintf( buff, sizeof(buff),"[%*s%-*s]", (itemLength - lenNameMax) / 2, "",
+ snprintf( buff, sizeof(buff)," [%*s%-*s]", (itemLength - lenNameMax) / 2, "",
(itemLength - lenNameMax + 1) / 2 + lenNameMax, mi );
else
- snprintf( buff, sizeof(buff),"[%*s%-*s]", (itemLength - lenName) / 2, "",
+ snprintf( buff, sizeof(buff)," [%*s%-*s]", (itemLength - lenName) / 2, "",
(itemLength - lenName + 1) / 2 + lenName, mi );
}
else
- snprintf( buff, sizeof(buff),"%*s%-*s", (itemLength - lenName) / 2, "",
+ snprintf( buff, sizeof(buff)," %*s%-*s", (itemLength - lenName) / 2, "",
(itemLength - lenName + 1) / 2 + lenName, mi );
}
/* If current item is selected, highlight it */
if( current == i )
{
wattrset(window, A_REVERSE);
+ buff[0]='>';
}
/* Print item */
@@ -800,10 +801,13 @@ int screen_buffer_display_ext(WINDOW *window, const char *options_org, const str
wmove(window,INTER_ANALYSE_Y+i-first_line_to_display,INTER_ANALYSE_X);
wclrtoeol(window);
if(i==current_line)
+ {
wattrset(window, A_REVERSE);
- wprintw(window, "%-*s", COLS, intr_buffer_screen[i]);
- if(i==current_line)
+ wprintw(window, ">%-*s", COLS, intr_buffer_screen[i]);
wattroff(window, A_REVERSE);
+ }
+ else
+ wprintw(window, " %-*s", COLS, intr_buffer_screen[i]);
}
}
else
@@ -1062,7 +1066,7 @@ int start_ncurses(const char *prog_name, const char *real_prog_name)
wprintw(stdscr,"Please enlarge the terminal.");
wmove(stdscr,LINES-2,0);
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"[ Quit ]");
+ waddstr(stdscr,"[ Quit ]");
wattroff(stdscr, A_REVERSE);
wrefresh(stdscr);
switch(wgetch(stdscr))
diff --git a/src/nodisk.c b/src/nodisk.c
index 0d10f48..6ac8526 100644
--- a/src/nodisk.c
+++ b/src/nodisk.c
@@ -79,7 +79,7 @@ int intrf_no_disk_ncurses(const char *prog_name)
#endif
wmove(stdscr,22,0);
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"[ Quit ]");
+ waddstr(stdscr,"[ Quit ]");
wattroff(stdscr, A_REVERSE);
wrefresh(stdscr);
while(wgetch(stdscr)==ERR);
diff --git a/src/ntfs_udl.c b/src/ntfs_udl.c
index 4ae7fda..43e53e7 100644
--- a/src/ntfs_udl.c
+++ b/src/ntfs_udl.c
@@ -1207,7 +1207,12 @@ static void ntfs_undelete_menu_ncurses(disk_t *disk_car, const partition_t *part
wmove(window, 6-1+i-offset, 0);
wclrtoeol(window); /* before addstr for BSD compatibility */
if(file_walker==current_file)
+ {
wattrset(window, A_REVERSE);
+ waddstr(window, ">");
+ }
+ else
+ waddstr(window, " ");
if((file_info->status&FILE_STATUS_MARKED)!=0 && has_colors())
wbkgdset(window,' ' | COLOR_PAIR(2));
if(file_info->stat.st_mtime!=0)
diff --git a/src/partmacn.c b/src/partmacn.c
index 7007a9e..a629c5e 100644
--- a/src/partmacn.c
+++ b/src/partmacn.c
@@ -54,7 +54,7 @@ void write_part_mac_warning_ncurses(void)
wprintw(window,"using values displayed by TestDisk");
wmove(window,22,0);
wattrset(window, A_REVERSE);
- wprintw(window,"[ Abort ]");
+ waddstr(window,"[ Abort ]");
wattroff(window, A_REVERSE);
wrefresh(window);
while(wgetch(window)==ERR);
diff --git a/src/pdisksel.c b/src/pdisksel.c
index 5483054..15dc8ba 100644
--- a/src/pdisksel.c
+++ b/src/pdisksel.c
@@ -105,11 +105,11 @@ static void photorec_disk_selection_ncurses(int verbose, const char *recup_dir,
continue;
wmove(stdscr,8+i-offset,0);
if(element_disk!=current_disk)
- wprintw(stdscr,"%s\n",element_disk->disk->description_short(element_disk->disk));
+ wprintw(stdscr," %s\n",element_disk->disk->description_short(element_disk->disk));
else
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"%s\n",element_disk->disk->description_short(element_disk->disk));
+ wprintw(stdscr,">%s\n",element_disk->disk->description_short(element_disk->disk));
wattroff(stdscr, A_REVERSE);
}
}
diff --git a/src/phrecn.c b/src/phrecn.c
index c4ce95b..74d60ab 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -518,7 +518,7 @@ static void recovery_finished(disk_t *disk, const partition_t *partition, const
wmove(stdscr,22,0);
wclrtoeol(stdscr);
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"[ Quit ]");
+ waddstr(stdscr,"[ Quit ]");
wattroff(stdscr, A_REVERSE);
wrefresh(stdscr);
log_flush();
@@ -1193,7 +1193,7 @@ static void interface_file_select_ncurses(file_enable_t *files_enable)
if(i==current_element_num)
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"[%c] %-4s %s", (files_enable[i].enable==0?' ':'X'),
+ wprintw(stdscr,">[%c] %-4s %s", (files_enable[i].enable==0?' ':'X'),
(files_enable[i].file_hint->extension!=NULL?
files_enable[i].file_hint->extension:""),
files_enable[i].file_hint->description);
@@ -1201,7 +1201,7 @@ static void interface_file_select_ncurses(file_enable_t *files_enable)
}
else
{
- wprintw(stdscr,"[%c] %-4s %s", (files_enable[i].enable==0?' ':'X'),
+ wprintw(stdscr," [%c] %-4s %s", (files_enable[i].enable==0?' ':'X'),
(files_enable[i].file_hint->extension!=NULL?
files_enable[i].file_hint->extension:""),
files_enable[i].file_hint->description);
diff --git a/src/ppartsel.c b/src/ppartsel.c
index 494b0da..c568f64 100644
--- a/src/ppartsel.c
+++ b/src/ppartsel.c
@@ -316,10 +316,12 @@ void menu_photorec(disk_t *disk_car, const int verbose, const char *recup_dir, f
if(element==current_element)
{
wattrset(stdscr, A_REVERSE);
+ waddstr(stdscr, ">");
aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,element->part);
wattroff(stdscr, A_REVERSE);
} else
{
+ waddstr(stdscr, " ");
aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,element->part);
}
}
diff --git a/src/tdisksel.c b/src/tdisksel.c
index 6fd225b..2cece52 100644
--- a/src/tdisksel.c
+++ b/src/tdisksel.c
@@ -101,11 +101,11 @@ static int testdisk_disk_selection_ncurses(int verbose,int dump_ind, const list_
continue;
wmove(stdscr,8+i-offset,0);
if(element_disk!=current_disk)
- wprintw(stdscr,"%s\n",element_disk->disk->description_short(element_disk->disk));
+ wprintw(stdscr," %s\n",element_disk->disk->description_short(element_disk->disk));
else
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"%s\n",element_disk->disk->description_short(element_disk->disk));
+ wprintw(stdscr,">%s\n",element_disk->disk->description_short(element_disk->disk));
wattroff(stdscr, A_REVERSE);
}
}
diff --git a/src/tload.c b/src/tload.c
index 0b196e2..e29ac6b 100644
--- a/src/tload.c
+++ b/src/tload.c
@@ -105,11 +105,11 @@ static struct td_list_head *interface_load_ncurses(disk_t *disk_car, backup_disk
if(backup_walker==backup_current)
{
wattrset(stdscr, A_REVERSE);
- wprintw(stdscr,"%s %s",backup->description,ctime(&backup->my_time));
+ wprintw(stdscr,">%s %s",backup->description,ctime(&backup->my_time));
wattroff(stdscr, A_REVERSE);
} else
{
- wprintw(stdscr,"%s %s",backup->description,ctime(&backup->my_time));
+ wprintw(stdscr," %s %s",backup->description,ctime(&backup->my_time));
}
}
if(i<=INTER_LOAD && backup==NULL)