Show More
@@ -3679,6 +3679,10 b' class InteractiveShell(SingletonConfigurable):' | |||||
3679 | pass |
|
3679 | pass | |
3680 | del self.tempdirs |
|
3680 | del self.tempdirs | |
3681 |
|
3681 | |||
|
3682 | # Restore user's cursor | |||
|
3683 | if hasattr(self, "editing_mode") and self.editing_mode == 'vi': | |||
|
3684 | sys.stdout.write("\x1b[0 q") | |||
|
3685 | sys.stdout.flush() | |||
3682 |
|
3686 | |||
3683 | def cleanup(self): |
|
3687 | def cleanup(self): | |
3684 | self.restore_sys_module_state() |
|
3688 | self.restore_sys_module_state() |
@@ -336,12 +336,7 b' def create_ipython_shortcuts(shell):' | |||||
336 | shape = {InputMode.NAVIGATION: 2, InputMode.REPLACE: 4}.get(mode, 6) |
|
336 | shape = {InputMode.NAVIGATION: 2, InputMode.REPLACE: 4}.get(mode, 6) | |
337 | cursor = "\x1b[{} q".format(shape) |
|
337 | cursor = "\x1b[{} q".format(shape) | |
338 |
|
338 | |||
339 | if hasattr(sys.stdout, "_cli"): |
|
339 | sys.stdout.write(cursor) | |
340 | write = sys.stdout._cli.output.write_raw |
|
|||
341 | else: |
|
|||
342 | write = sys.stdout.write |
|
|||
343 |
|
||||
344 | write(cursor) |
|
|||
345 | sys.stdout.flush() |
|
340 | sys.stdout.flush() | |
346 |
|
341 | |||
347 | self._input_mode = mode |
|
342 | self._input_mode = mode |
General Comments 0
You need to be logged in to leave comments.
Login now