Show More
@@ -251,8 +251,8 b' class TerminalInteractiveShell(InteractiveShell):' | |||
|
251 | 251 | mouse_support=self.mouse_support, |
|
252 | 252 | **self._layout_options() |
|
253 | 253 | ) |
|
254 | self.pt_cli = CommandLineInterface(self._app, | |
|
255 | eventloop=create_eventloop(self.inputhook)) | |
|
254 | self._eventloop = create_eventloop(self.inputhook) | |
|
255 | self.pt_cli = CommandLineInterface(self._app, eventloop=self._eventloop) | |
|
256 | 256 | |
|
257 | 257 | def _make_style_from_name(self, name): |
|
258 | 258 | """ |
@@ -383,6 +383,8 b' class TerminalInteractiveShell(InteractiveShell):' | |||
|
383 | 383 | except KeyboardInterrupt: |
|
384 | 384 | print("\nKeyboardInterrupt escaped interact()\n") |
|
385 | 385 | |
|
386 | self._eventloop.close() | |
|
387 | ||
|
386 | 388 | _inputhook = None |
|
387 | 389 | def inputhook(self, context): |
|
388 | 390 | if self._inputhook is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now