def set_foreground(color): """Sets the current foreground color of the terminal""" if _is_term: _term.write(curses.tparm(_set_color, color)) _term.flush()