def guess_contains_ncurses(lines):
    """Tries to determine if a file includes Ncurses
    """
    for line in lines:
        if '_nc_first_name' in line:
            return 1
        if '_nc_infotocap' in line:
            return 1
        if 'if NCURSES_XNAMES' in line:
            return 1
    return 0
