|
@@ -356,7 +356,7 @@ class GMStdout:
|
|
for line in s.split(os.linesep):
|
|
for line in s.split(os.linesep):
|
|
p1 = self.gmstc.GetCurrentPos() # get caret position
|
|
p1 = self.gmstc.GetCurrentPos() # get caret position
|
|
self.gmstc.AddTextWrapped(line, wrap=None) # no wrapping && adds os.linesep
|
|
self.gmstc.AddTextWrapped(line, wrap=None) # no wrapping && adds os.linesep
|
|
- self.gmstc.EnsureCaretVisible()
|
|
|
|
|
|
+ # self.gmstc.EnsureCaretVisible()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
self.gmstc.SetStyling(p2 - p1 + 1, self.gmstc.StyleOutput)
|
|
self.gmstc.SetStyling(p2 - p1 + 1, self.gmstc.StyleOutput)
|
|
@@ -422,7 +422,7 @@ class GMStderr:
|
|
if len(line) > 0:
|
|
if len(line) > 0:
|
|
p1 = self.gmstc.GetCurrentPos()
|
|
p1 = self.gmstc.GetCurrentPos()
|
|
self.gmstc.AddTextWrapped(line, wrap=60) # wrap && add os.linesep
|
|
self.gmstc.AddTextWrapped(line, wrap=60) # wrap && add os.linesep
|
|
- self.gmstc.EnsureCaretVisible()
|
|
|
|
|
|
+ # self.gmstc.EnsureCaretVisible()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
self.gmstc.SetStyling(p2 - p1 + 1, self.gmstc.StyleUnknown)
|
|
self.gmstc.SetStyling(p2 - p1 + 1, self.gmstc.StyleUnknown)
|
|
@@ -435,11 +435,11 @@ class GMStderr:
|
|
message = 'WARNING: ' + message
|
|
message = 'WARNING: ' + message
|
|
elif type == 'error':
|
|
elif type == 'error':
|
|
message = 'ERROR: ' + message
|
|
message = 'ERROR: ' + message
|
|
- if '\n' not in message:
|
|
|
|
|
|
+ if os.linesep not in message:
|
|
self.gmstc.AddTextWrapped(message, wrap=60) #wrap && add os.linesep
|
|
self.gmstc.AddTextWrapped(message, wrap=60) #wrap && add os.linesep
|
|
else:
|
|
else:
|
|
self.gmstc.AddText(message + os.linesep)
|
|
self.gmstc.AddText(message + os.linesep)
|
|
- self.gmstc.EnsureCaretVisible()
|
|
|
|
|
|
+ # self.gmstc.EnsureCaretVisible()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
p2 = self.gmstc.GetCurrentPos()
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
self.gmstc.StartStyling(p1, 0xff)
|
|
if type == 'error':
|
|
if type == 'error':
|