bfsDelMenu()

PROTOTYPE

#include <bfs.h>

void bfsDelMenu(void);

DESCRIPTION

bfsDelMenu() invokes an interactive menu, using stdin and stdout, for listing and deleting TargetBFS files.

EXAMPLE

/***********************************************************************/
/*     sh_idel: Interactive file deletion shell command                */
/*                                                                     */
/*       Input: unused = rest of line from user                        */
/*                                                                     */
/*     Returns: 0 on success, -1 on error                              */
/*                                                                     */
/***********************************************************************/
static void sh_idel(char *cmd_line)
{
  bfsDelMenu();
}

Example Output:
'0' - bfs/boot.bin        97792 bytes
'1' - bfs/file0         2382189 bytes
'2' - bfs/file1         2382189 bytes
'3' - bfs/file2         2382189 bytes
'4' - bfs/file3         2382189 bytes
'5' - bfs/file4         2382189 bytes
'6' - bfs/file5         2382189 bytes
'7' - bfs/file6         2326016 bytes
Command ('0'-'7' = delete file, '.' = delete all, 'Q' = quit): 3
Delete "file2" ('1' = yes, other = no): 1 ...finished