import curses


def menu_input(menu, row, col):
    """
        Function to allow the user to enter text in a curses menu

        :param menu: The curses window
        :type menu: window object
        :param int row: The row where the cursor shows up
        :param int col: The col where the cursor shows up
        :return user_input: The input from the user
         :rtype: str
    """
    curses.echo()
    curses.curs_set(1)
    user_input = menu.getstr(row+5, col+8, 100)
    curses.noecho()
    curses.curs_set(0)
    return user_input