Show More
@@ -212,12 +212,20 b' class ConsoleWidget(editwindow.EditWindow):' | |||
|
212 | 212 | segment = segments.pop(0) |
|
213 | 213 | self.GotoPos(self.GetLength()) |
|
214 | 214 | self.StartStyling(self.GetLength(), 0xFF) |
|
215 | try: | |
|
215 | 216 | self.AppendText(segment) |
|
217 | except UnicodeDecodeError: | |
|
218 | # XXX: Do I really want to skip the exception? | |
|
219 | pass | |
|
216 | 220 | |
|
217 | 221 | if segments: |
|
218 | 222 | for ansi_tag, text in zip(segments[::2], segments[1::2]): |
|
219 | 223 | self.StartStyling(self.GetLength(), 0xFF) |
|
224 | try: | |
|
220 | 225 | self.AppendText(text) |
|
226 | except UnicodeDecodeError: | |
|
227 | # XXX: Do I really want to skip the exception? | |
|
228 | pass | |
|
221 | 229 | |
|
222 | 230 | if ansi_tag not in self.ANSI_STYLES: |
|
223 | 231 | style = 0 |
@@ -276,6 +276,7 b' class WxController(PrefilterFrontEnd, ConsoleWidget):' | |||
|
276 | 276 | """ Capture the character events, let the parent |
|
277 | 277 | widget handle them, and put our logic afterward. |
|
278 | 278 | """ |
|
279 | # FIXME: This method needs to be broken down in smaller ones. | |
|
279 | 280 | current_line_number = self.GetCurrentLine() |
|
280 | 281 | if event.KeyCode in (ord('c'), ord('C')) and event.ControlDown(): |
|
281 | 282 | # Capture Control-C |
General Comments 0
You need to be logged in to leave comments.
Login now