Show More
@@ -210,8 +210,6 b' class Pdb(OldPdb):' | |||||
210 | else: |
|
210 | else: | |
211 | OldPdb.__init__(self,completekey,stdin,stdout) |
|
211 | OldPdb.__init__(self,completekey,stdin,stdout) | |
212 |
|
212 | |||
213 | self.prompt = prompt # The default prompt is '(Pdb)' |
|
|||
214 |
|
||||
215 | # IPython changes... |
|
213 | # IPython changes... | |
216 | self.is_pydb = has_pydb |
|
214 | self.is_pydb = has_pydb | |
217 |
|
215 | |||
@@ -253,12 +251,15 b' class Pdb(OldPdb):' | |||||
253 | C = coloransi.TermColors |
|
251 | C = coloransi.TermColors | |
254 | cst = self.color_scheme_table |
|
252 | cst = self.color_scheme_table | |
255 |
|
253 | |||
|
254 | cst['NoColor'].colors.prompt = C.NoColor | |||
256 | cst['NoColor'].colors.breakpoint_enabled = C.NoColor |
|
255 | cst['NoColor'].colors.breakpoint_enabled = C.NoColor | |
257 | cst['NoColor'].colors.breakpoint_disabled = C.NoColor |
|
256 | cst['NoColor'].colors.breakpoint_disabled = C.NoColor | |
258 |
|
257 | |||
|
258 | cst['Linux'].colors.prompt = C.Green | |||
259 | cst['Linux'].colors.breakpoint_enabled = C.LightRed |
|
259 | cst['Linux'].colors.breakpoint_enabled = C.LightRed | |
260 | cst['Linux'].colors.breakpoint_disabled = C.Red |
|
260 | cst['Linux'].colors.breakpoint_disabled = C.Red | |
261 |
|
261 | |||
|
262 | cst['LightBG'].colors.prompt = C.Blue | |||
262 | cst['LightBG'].colors.breakpoint_enabled = C.LightRed |
|
263 | cst['LightBG'].colors.breakpoint_enabled = C.LightRed | |
263 | cst['LightBG'].colors.breakpoint_disabled = C.Red |
|
264 | cst['LightBG'].colors.breakpoint_disabled = C.Red | |
264 |
|
265 | |||
@@ -268,6 +269,10 b' class Pdb(OldPdb):' | |||||
268 | # debugging. |
|
269 | # debugging. | |
269 | self.parser = PyColorize.Parser() |
|
270 | self.parser = PyColorize.Parser() | |
270 |
|
271 | |||
|
272 | # Set the prompt | |||
|
273 | Colors = cst.active_colors | |||
|
274 | self.prompt = u'%s%s%s' % (Colors.prompt, prompt, Colors.Normal) # The default prompt is '(Pdb)' | |||
|
275 | ||||
271 | def set_colors(self, scheme): |
|
276 | def set_colors(self, scheme): | |
272 | """Shorthand access to the color table scheme selector method.""" |
|
277 | """Shorthand access to the color table scheme selector method.""" | |
273 | self.color_scheme_table.set_active_scheme(scheme) |
|
278 | self.color_scheme_table.set_active_scheme(scheme) |
General Comments 0
You need to be logged in to leave comments.
Login now