Skip to content

Commit

Permalink
Swapped to get_wch for grabbing input
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardKenzie committed Nov 23, 2022
1 parent c401d9e commit 7f826d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/miniplayer
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,13 @@ class Player:
stopped = False

# Get key
key = self.stdscr.getch()
try:
key = self.stdscr.get_wch()

if isinstance(key, str):
key = ord(key)
except curses.error:
key = 0

while key > 0:
# Resolve every key in buffer
Expand Down

0 comments on commit 7f826d3

Please sign in to comment.