def _find_palettes(stream):
chosen = choose_palette(stream=stream)<EOL>palettes = get_available_palettes(chosen)<EOL>fg = ForegroundPalette(palettes=palettes)<EOL>fx = EffectsPalette(palettes=palettes)<EOL>return fg, fx, chosen<EOL>
Need to configure palettes manually, since we are checking stderr.