Skip to content

Commit

Permalink
Do not run simple-term-menu in the PyCharm output console
Browse files Browse the repository at this point in the history
Running simple-term-menu in the PyCharm output console has known issues
(hanging IDE, non-visible menu).
  • Loading branch information
IngoMeyer441 committed Oct 13, 2023
1 parent 8899b96 commit fae60a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions simple_term_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
except ImportError as e:
raise NotImplementedError('"{}" is currently not supported.'.format(platform.system())) from e

if "PYCHARM_HOSTED" in os.environ:
raise NotImplementedError(
"simple-term-menu does not work in the PyCharm output console. Use a terminal instead (Alt + F12)."
)


__author__ = "Ingo Meyer"
__email__ = "i.meyer@fz-juelich.de"
Expand Down

0 comments on commit fae60a4

Please sign in to comment.