Skip to content

Commit

Permalink
Merge branch 'release/0.6.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbarrett314 committed Aug 1, 2022
2 parents e7cf775 + fccaca8 commit 4b5913c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-action-tox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on: [push]

name: 'Tox test cursesmenu'
name: 'Tests'

jobs:
shellcheck:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 0.6.4
-------------

* Workaround vscode/windows-curses issue

Version 0.6.3
-------------

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Currently the platforms I'm manually testing on are MacOS in iTerm2 on zsh with
with both powersehll and cmd.exe in and out of Windows Terminal. If a bug pops up on another configuration, \
no promises that I'll be able to reproduce it.

.. |Build Status| image:: https://travis-ci.org/pmbarrett314/curses-menu.svg
:target: https://travis-ci.org/pmbarrett314/curses-menu
.. |Build Status| image:: https://github.com/pmbarrett314/curses-menu/actions/workflows/github-action-tox.yml/badge.svg
:target: https://github.com/pmbarrett314/curses-menu/actions/workflows/github-action-tox.yml/badge.svg
.. |Documentation Status| image:: https://readthedocs.org/projects/curses-menu/badge/?version=latest
:target: http://curses-menu.readthedocs.org/en/latest/?badge=latest
2 changes: 1 addition & 1 deletion cursesmenu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__all__ = ["CursesMenu", "ItemGroup", "items"]

__version__ = "0.6.3"
__version__ = "0.6.4"
8 changes: 8 additions & 0 deletions cursesmenu/curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ def __init__(
curses.KEY_RESIZE: self.on_resize,
},
)
# workaround for issue with windows-curses in vscode terminal
if os.environ.get("TERM_PROGRAM", default="") == "vscode": # pragma: no cover
self.user_input_handlers.update(
{
450: self.go_up,
456: self.go_down,
},
)
self.user_input_handlers.update(
{k: self.go_to for k in map(ord, map(str, range(1, 10)))},
)
Expand Down

0 comments on commit 4b5913c

Please sign in to comment.