| 44 | |
| 45 | #ifdef HAVE_NCURSES |
| 46 | static void hfs_dump_ncurses(disk_t *disk_car, const partition_t *partition, const unsigned char *buffer_bs, const unsigned char *buffer_backup_bs) |
| 47 | { |
| 48 | WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */ |
| 49 | keypad(window, TRUE); /* Need it to get arrow key */ |
| 50 | aff_copy(window); |
| 51 | wmove(window,4,0); |
| 52 | wprintw(window,"%s",disk_car->description(disk_car)); |
| 53 | wmove(window,5,0); |
| 54 | aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition); |
| 55 | mvwaddstr(window,6,0, "Superblock Backup superblock"); |
| 56 | dump2(window, buffer_bs, buffer_backup_bs, HFSP_BOOT_SECTOR_SIZE); |
| 57 | delwin(window); |
| 58 | (void) clearok(stdscr, TRUE); |
| 59 | #ifdef HAVE_TOUCHWIN |
| 60 | touchwin(stdscr); |
| 61 | #endif |
| 62 | } |
| 63 | #endif |
| 64 | |
| 65 | static void hfs_dump(disk_t *disk_car, const partition_t *partition, const unsigned char *buffer_bs, const unsigned char *buffer_backup_bs, char **current_cmd) |