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