Skip to content

Commit

Permalink
Do not perform DECSTBM in pycharm terminal emulator (#3005)
Browse files Browse the repository at this point in the history
* Do not perform DECSTBM in pycharm terminal emulator

* changelog
  • Loading branch information
YevheniiSemendiak authored Dec 19, 2023
1 parent dcc0278 commit ab09eec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/3005.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not perform terminal settings reset in PyCharm while it causes screen cleanup.
5 changes: 4 additions & 1 deletion neuro-cli/src/neuro_cli/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ def close(self) -> None:
finally:
sys.stderr = sys.__stderr__

self.soft_reset_tty()
if os.environ.get("TERMINAL_EMULATOR") not in (
"JetBrains-JediTerm", # https://github.com/JetBrains/jediterm/issues/273
):
self.soft_reset_tty()

def run(self, main: Awaitable[_T]) -> _T:
return self._runner.run(main)
Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
directory = "CHANGELOG.D"
filename = "CHANGELOG.md"
name = "Neuro SDK/CLI"
issue_format = "[#{issue}](https://github.com/neuro-inc/platform-client-python/issues/{issue})"
issue_format = "[#{issue}](https://github.com/neuro-inc/neuro-cli/issues/{issue})"
start_string = "[comment]: # (towncrier release notes start)\n"

0 comments on commit ab09eec

Please sign in to comment.