Show More
@@ -104,8 +104,11 b' class AnsiCodeProcessor(object):' | |||
|
104 | 104 | The parameter codes for the command. |
|
105 | 105 | """ |
|
106 | 106 | if command == 'm': # SGR - Select Graphic Rendition |
|
107 |
f |
|
|
108 | self.set_sgr_code(code) | |
|
107 | if params: | |
|
108 | for code in params: | |
|
109 | self.set_sgr_code(code) | |
|
110 | else: | |
|
111 | self.set_sgr_code(0) | |
|
109 | 112 | |
|
110 | 113 | elif (command == 'J' or # ED - Erase Data |
|
111 | 114 | command == 'K'): # EL - Erase in Line |
@@ -265,6 +265,12 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||
|
265 | 265 | # before writing a new prompt. |
|
266 | 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 | 274 | content = msg['content'] |
|
269 | 275 | status = content['status'] |
|
270 | 276 | if status == 'ok': |
General Comments 0
You need to be logged in to leave comments.
Login now