QScintilla/Terminal.py

changeset 1566
0cb791cc631a
parent 1518
e6e21910210d
child 1588
dccffd13be8d
diff -r 9d2cccd2074e -r 0cb791cc631a QScintilla/Terminal.py
--- a/QScintilla/Terminal.py	Fri Jan 20 18:54:06 2012 +0100
+++ b/QScintilla/Terminal.py	Sat Jan 21 15:01:53 2012 +0100
@@ -261,6 +261,9 @@
         self.setLexer(self.lexer_)
         self.lexer_.readSettings(Preferences.Prefs.settings, "Scintilla")
         
+        self.lexer_.setDefaultColor(self.lexer_.color(0))
+        self.lexer_.setDefaultPaper(self.lexer_.paper(0))
+        
     def __setMargin0(self):
         """
         Private method to configure margin 0.
@@ -342,6 +345,10 @@
         
         self.setCursorFlashTime(QApplication.cursorFlashTime())
         
+        if Preferences.getEditor("OverrideEditAreaColours"):
+            self.setColor(Preferences.getEditorColour("EditAreaForeground"))
+            self.setPaper(Preferences.getEditorColour("EditAreaBackground"))
+        
     def __setMonospaced(self, on):
         """
         Private method to set/reset a monospaced font.

eric ide

mercurial