host/user_interface.c
/** Display human-readable description of an action on stdout.
  * \param command The action to display. See #AskUserCommandEnum.
  * \return printed string of the action description
  */
Display human-readable description of an action on stdout.
\param command The action to display.
Display human - readable description of an action on stdout . \ param command The action to display .
static void printAction(AskUserCommand command)
{
    printf("\n");
    switch (command)
    {
        case ASKUSER_NEW_WALLET:
            printf("Create new wallet? ");
            break;
        case ASKUSER_NEW_ADDRESS:
            printf("Create new address? ");
            break;
        case ASKUSER_SIGN_TRANSACTION:
            printf("Sign transaction? ");
            break;
        case ASKUSER_FORMAT:
            printf("Format storage area? ");
            break;
        case ASKUSER_CHANGE_NAME:
            printf("Change wallet name? ");
            break;
        case ASKUSER_BACKUP_WALLET:
            printf("Do a wallet backup? ");
            break;
        case ASKUSER_RESTORE_WALLET:
            printf("Restore wallet from backup? ");
            break;
        case ASKUSER_CHANGE_KEY:
            printf("Change wallet encryption key? ");
            break;
        case ASKUSER_GET_MASTER_KEY:
            printf("Reveal master public key? ");
            break;
        case ASKUSER_DELETE_WALLET:
            printf("Delete existing wallet? ");
            break;
        default:
            printf("Invalid user command!\n");
    }
}
static void printAction ( AskUserCommand command ) { printf ( " \n " ) ; switch ( command ) { case ASKUSER_NEW_WALLET : printf ( " " ) ; break ; case ASKUSER_NEW_ADDRESS : printf ( " " ) ; break ; case ASKUSER_SIGN_TRANSACTION : printf ( " " ) ; break ; case ASKUSER_FORMAT : printf ( " " ) ; break ; case ASKUSER_CHANGE_NAME : printf ( " " ) ; break ; case ASKUSER_BACKUP_WALLET : printf ( " " ) ; break ; case ASKUSER_RESTORE_WALLET : printf ( " " ) ; break ; case ASKUSER_CHANGE_KEY : printf ( " " ) ; break ; case ASKUSER_GET_MASTER_KEY : printf ( " " ) ; break ; case ASKUSER_DELETE_WALLET : printf ( " " ) ; break ; default : printf ( " \n " ) ; } }
Display human-readable description of an action on stdout.
Display human - readable description of an action on stdout .
/* fatalError(); */ /* IS IT NEEDED? */