def foreground(color):
if color not in foreground_colors:<EOL><INDENT>return<EOL><DEDENT>if is_win32:<EOL><INDENT>last_fg = foreground_colors[color][<NUM_LIT:1>]<EOL>set_color_win32(last_fg | last_bg)<EOL><DEDENT>else:<EOL><INDENT>set_color_ansi(foreground_colors[color][<NUM_LIT:0>])<EOL><DEDENT>
Set the foreground color.