def take_multiline_input(prompt='> ') -> str:
    """Give the user a prompt where they can enter multiple lines in the console."""
    lines = []

    if not prompt.endswith(' '):
        prompt += ' '

    print('This is a multiline input. You can use as many lines as you want. You cannot edit a line after you have pressed enter.\n\nWhen you want to finish, simply type "done" on a line on its own. Press Ctrl+C at any time to cancel the entry and exit.\n')

    while True:
        line = input(prompt)
        if line == 'done':
            break  # Break out of the loop to concat all the other lines
        lines.append(line)

    return '\n'.join(lines)