| 91 | } |
| 92 | |
| 93 | static void ntfs_dump_ncurses(disk_t *disk_car, const partition_t *partition, const unsigned char *orgboot, const unsigned char *newboot) |
| 94 | { |
| 95 | WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */ |
| 96 | keypad(window, TRUE); /* Need it to get arrow key */ |
| 97 | aff_copy(window); |
| 98 | wmove(window,4,0); |
| 99 | wprintw(window,"%s",disk_car->description(disk_car)); |
| 100 | wmove(window,5,0); |
| 101 | aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition); |
| 102 | mvwaddstr(window,6,0, " Rebuild Boot sector Boot sector"); |
| 103 | dump2(window, newboot, orgboot, NTFS_SECTOR_SIZE); |
| 104 | delwin(window); |
| 105 | (void) clearok(stdscr, TRUE); |
| 106 | #ifdef HAVE_TOUCHWIN |
| 107 | touchwin(stdscr); |
| 108 | #endif |
| 109 | } |
| 110 | #endif |
| 111 | |
| 112 | static void ntfs_dump(disk_t *disk_car, const partition_t *partition, const unsigned char *orgboot, const unsigned char *newboot, char **current_cmd) |