def _text_choose_characters(player):
    """Display the menu to choose a character."""
    text = "Enter a valid number to log into that character.\n"
    characters = player.db._playable_characters
    if len(characters):
        for i, character in enumerate(characters):
            text += "\n  |y{}|n - Log into {}.".format(str(i + 1),
                    character.name)
    else:
        text += "\n  No character has been created in this account yet."

    text += "\n"
    if len(characters) < 5:
        text += "\n  |yC|n to create a new character."

    if len(characters) > 0:
        text += "\n  |yD|n to delete one of your characters."

    return text