summaryrefslogtreecommitdiffstats
path: root/src/intrfn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-01-27 08:38:17 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-01-27 08:38:17 +0100
commit9998392d2127737982e10c01a515649328329196 (patch)
tree824f9aa0fa0926739cfbb70400bd690f9d7fd388 /src/intrfn.c
parent130c0373d3f4cbc7a21bf9381aef4543814bbcf2 (diff)
TestDisk: display the partition table type if autodetected
Diffstat (limited to 'src/intrfn.c')
-rw-r--r--src/intrfn.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index 8df69a7..365d9de 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -1293,6 +1293,17 @@ int interface_partition_type_ncurses(disk_t *disk_car)
wprintw(stdscr,"%s\n",disk_car->description_short(disk_car));
wmove(stdscr,INTER_PARTITION_Y-1,0);
wprintw(stdscr,"Please select the partition table type, press Enter when done.");
+ if(disk_car->arch_autodetected!=NULL)
+ {
+ wmove(stdscr,19,0);
+ wprintw(stdscr, "Hint: ");
+ if(has_colors())
+ wbkgdset(stdscr,' ' | COLOR_PAIR(2));
+ wprintw(stdscr, "%s", disk_car->arch_autodetected->part_name);
+ if(has_colors())
+ wbkgdset(stdscr,' ' | COLOR_PAIR(0));
+ wprintw(stdscr, " partition table type has been detected.");
+ }
wmove(stdscr,20,0);
wprintw(stdscr,"Note: Do NOT select 'None' for media with only a single partition. It's very");
wmove(stdscr,21,0);