def add_squid_info(screen, y, x, sq_label, sq_label_size, carrier_good, nuller_good, demod_good, temperature_good, voltage_good, max_size, bolometer_good, fir_stage, feedback_on, bolo_label='', neutral_c=3, good_c=2, bad_c=1):
    col_map = {True: curses.color_pair(good_c), False: curses.color_pair(bad_c)}
    current_index = x
    screen.addstr(y, current_index, sq_label, curses.color_pair(neutral_c))
    current_index += sq_label_size
    screen.addstr(y, current_index, 'C', col_map[carrier_good])
    current_index += 1
    screen.addstr(y, current_index, 'N', col_map[nuller_good])
    current_index += 1
    screen.addstr(y, current_index, 'D', col_map[demod_good])
    current_index += 1
    screen.addstr(y, current_index, 'T', col_map[temperature_good])
    current_index += 1
    screen.addstr(y, current_index, 'V', col_map[voltage_good])
    current_index += 1
    screen.addstr(y, current_index, ('%d' % fir_stage), col_map[(fir_stage == 6)])
    current_index += 1
    screen.addstr(y, current_index, 'F', col_map[feedback_on])
    current_index += 1
    if (not bolometer_good):
        screen.addstr(y, current_index, (' ' + bolo_label[:((max_size - 7) - sq_label_size)]), col_map[False])
def add_squid_info(screen, y, x, sq_label, sq_label_size, carrier_good, nuller_good, demod_good, temperature_good, voltage_good, max_size, bolometer_good, fir_stage, feedback_on, bolo_label=, neutral_c=3, good_c=2, bad_c=1):
    col_map = {True: curses.color_pair(good_c), False: curses.color_pair(bad_c)}
    current_index = x
    screen.addstr(y, current_index, sq_label, curses.color_pair(neutral_c))
    current_index += sq_label_size
    screen.addstr(y, current_index, 'C', col_map[carrier_good])
    current_index += 1
    screen.addstr(y, current_index, 'N', col_map[nuller_good])
    current_index += 1
    screen.addstr(y, current_index, 'D', col_map[demod_good])
    current_index += 1
    screen.addstr(y, current_index, 'T', col_map[temperature_good])
    current_index += 1
    screen.addstr(y, current_index, 'V', col_map[voltage_good])
    current_index += 1
    screen.addstr(y, current_index, ('%d' % fir_stage), col_map[(fir_stage == 6)])
    current_index += 1
    screen.addstr(y, current_index, 'F', col_map[feedback_on])
    current_index += 1
    if (not bolometer_good):
        screen.addstr(y, current_index, (' ' + bolo_label[:((max_size - 7) - sq_label_size)]), col_map[False])