add a new option to separate gui and cterm foreground