Skip to content

Commit

Permalink
Merge pull request #50 from mdmintz/fix-windows-prompt-display-issue
Browse files Browse the repository at this point in the history
Fix Windows Command Prompt display issue
  • Loading branch information
mdmintz authored Aug 12, 2023
2 parents fbf81c2 + 606dd3f commit 3c19d38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pygments>=2.14.0;python_version<"3.7"
pygments>=2.16.1;python_version>="3.7"
tabcompleter>=1.2.1
colorama>=0.4.5;platform_system=="Windows"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

setup(
name="pdbp",
version="1.4.4",
version="1.4.5",
description="pdbp (Pdb+): A drop-in replacement for pdb and pdbpp.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down Expand Up @@ -125,6 +125,7 @@
'pygments>=2.14.0;python_version<"3.7"',
'pygments>=2.16.1;python_version>="3.7"',
"tabcompleter>=1.2.1",
'colorama>=0.4.5;platform_system=="Windows"',
],
setup_requires=[],
include_package_data=True,
Expand Down
3 changes: 3 additions & 0 deletions src/pdbp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,9 @@ def print_pdb_continue_line():

def main():
import getopt
if "win32" in sys.platform:
import colorama
colorama.init()
opts, args = getopt.getopt(sys.argv[1:], "mhc:", ["help", "command="])
if not args:
print(_usage)
Expand Down

0 comments on commit 3c19d38

Please sign in to comment.