Show More
@@ -104,8 +104,11 b' class AnsiCodeProcessor(object):' | |||||
104 | The parameter codes for the command. |
|
104 | The parameter codes for the command. | |
105 | """ |
|
105 | """ | |
106 | if command == 'm': # SGR - Select Graphic Rendition |
|
106 | if command == 'm': # SGR - Select Graphic Rendition | |
107 |
f |
|
107 | if params: | |
108 | self.set_sgr_code(code) |
|
108 | for code in params: | |
|
109 | self.set_sgr_code(code) | |||
|
110 | else: | |||
|
111 | self.set_sgr_code(0) | |||
109 |
|
112 | |||
110 | elif (command == 'J' or # ED - Erase Data |
|
113 | elif (command == 'J' or # ED - Erase Data | |
111 | command == 'K'): # EL - Erase in Line |
|
114 | command == 'K'): # EL - Erase in Line |
@@ -265,6 +265,12 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||||
265 | # before writing a new prompt. |
|
265 | # before writing a new prompt. | |
266 | self.kernel_manager.sub_channel.flush() |
|
266 | self.kernel_manager.sub_channel.flush() | |
267 |
|
267 | |||
|
268 | # Reset the ANSI style information to prevent bad text in stdout | |||
|
269 | # from messing up our colors. We're not a true terminal so we're | |||
|
270 | # allowed to do this. | |||
|
271 | if self.ansi_codes: | |||
|
272 | self._ansi_processor.reset_sgr() | |||
|
273 | ||||
268 | content = msg['content'] |
|
274 | content = msg['content'] | |
269 | status = content['status'] |
|
275 | status = content['status'] | |
270 | if status == 'ok': |
|
276 | if status == 'ok': |
General Comments 0
You need to be logged in to leave comments.
Login now