Show More
@@ -162,6 +162,15 b' def get_default_editor():' | |||||
162 | return ed |
|
162 | return ed | |
163 |
|
163 | |||
164 |
|
164 | |||
|
165 | def get_default_colors(): | |||
|
166 | if sys.platform=='darwin': | |||
|
167 | return "LightBG" | |||
|
168 | elif os.name=='nt': | |||
|
169 | return 'Linux' | |||
|
170 | else: | |||
|
171 | return 'Linux' | |||
|
172 | ||||
|
173 | ||||
165 | class SeparateStr(Str): |
|
174 | class SeparateStr(Str): | |
166 | """A Str subclass to validate separate_in, separate_out, etc. |
|
175 | """A Str subclass to validate separate_in, separate_out, etc. | |
167 |
|
176 | |||
@@ -192,7 +201,7 b' class InteractiveShell(Component, Magic):' | |||||
192 | cache_size = Int(1000, config=True) |
|
201 | cache_size = Int(1000, config=True) | |
193 | color_info = CBool(True, config=True) |
|
202 | color_info = CBool(True, config=True) | |
194 | colors = CaselessStrEnum(('NoColor','LightBG','Linux'), |
|
203 | colors = CaselessStrEnum(('NoColor','LightBG','Linux'), | |
195 |
default_value= |
|
204 | default_value=get_default_colors(), config=True) | |
196 | confirm_exit = CBool(True, config=True) |
|
205 | confirm_exit = CBool(True, config=True) | |
197 | debug = CBool(False, config=True) |
|
206 | debug = CBool(False, config=True) | |
198 | deep_reload = CBool(False, config=True) |
|
207 | deep_reload = CBool(False, config=True) |
General Comments 0
You need to be logged in to leave comments.
Login now