MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / exFAT_dump_ncurses

Function exFAT_dump_ncurses

src/texfat.c:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

exFAT_dumpFunction · 0.85

Calls 3

aff_partFunction · 0.85
dump2Function · 0.85
aff_copyFunction · 0.70

Tested by

no test coverage detected