summaryrefslogtreecommitdiffstats
path: root/Tools/idle/PyShell.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-20 15:45:30 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-20 15:45:30 (GMT)
commit7de697597ea3e68e1444c77aa766297ad3d9bd3f (patch)
treee8bafde74da65c16524cbdf50f0e9a7e10af6b3b /Tools/idle/PyShell.py
parentcfb819ee5168dd2d5c9c1bd237d8ac7d0e2278e2 (diff)
downloadcpython-7de697597ea3e68e1444c77aa766297ad3d9bd3f.zip
cpython-7de697597ea3e68e1444c77aa766297ad3d9bd3f.tar.gz
cpython-7de697597ea3e68e1444c77aa766297ad3d9bd3f.tar.bz2
Color preferences code by Loren Luke (massaged by me somewhat)
Diffstat (limited to 'Tools/idle/PyShell.py')
-rw-r--r--Tools/idle/PyShell.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py
index 8bee5d5..f83ee0c 100644
--- a/Tools/idle/PyShell.py
+++ b/Tools/idle/PyShell.py
@@ -113,14 +113,21 @@ class ModifiedColorDelegator(ColorDelegator):
ColorDelegator.recolorize_main(self)
tagdefs = ColorDelegator.tagdefs.copy()
+ cprefs = ColorDelegator.cprefs
tagdefs.update({
- ##"stdin": {"background": "yellow"},
- "stdout": {"foreground": "blue"},
- "stderr": {"foreground": "#007700"},
- "console": {"foreground": "#770000"},
- "ERROR": {"background": "#FF7777"},
- None: {"foreground": "purple"}, # default
+ "stdin": {"foreground": cprefs.CStdIn[0],
+ "background": cprefs.CStdIn[1]},
+ "stdout": {"foreground": cprefs.CStdOut[0],
+ "background": cprefs.CStdOut[1]},
+ "stderr": {"foreground": cprefs.CStdErr[0],
+ "background": cprefs.CStdErr[1]},
+ "console": {"foreground": cprefs.CConsole[0],
+ "background": cprefs.CConsole[1]},
+ "ERROR": {"background": cprefs.CError[0],
+ "background": cprefs.CError[1]},
+ None: {"foreground": cprefs.CNormal[0],
+ "background": cprefs.CNormal[1]},
})