- for _term in ['linux', 'term', 'rxvt', 'vt100', 'screen']:
- if _term in term:
- if background == 'dark':
- ps1_color = '3' # yellow
- stdout_color = '7' # bold white
- else:
- ps1_color = '4' # blue
- stdout_color = '0' # bold black
+ for _term in ['linux', 'rxvt', 'screen', 'term', 'vt100']:
+ if _term not in term:
+ continue
+
+ if background == 'dark':
+ ps1_color = '3' # yellow
+ stdout_color = '7' # bold white
+ else:
+ ps1_color = '4' # blue
+ stdout_color = '0' # bold black