mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix prepare getch for macOS.
This commit is contained in:
parent
e99f650eaa
commit
3202a5f081
1 changed files with 6 additions and 6 deletions
|
@ -297,7 +297,7 @@ class _GetchWindows:
|
|||
|
||||
def __call__(self):
|
||||
import msvcrt
|
||||
return msvcrt.getch()
|
||||
return msvcrt.getch().decode('ascii')
|
||||
|
||||
getch = _Getch()
|
||||
|
||||
|
@ -342,16 +342,16 @@ def runStages():
|
|||
else:
|
||||
print('(r)ebuild, rebuild (a)ll, (s)kip, (q)uit?: ', end='', flush=True)
|
||||
while True:
|
||||
ch = b'r' if rebuildStale else getch()
|
||||
if ch == b'q':
|
||||
ch = 'r' if rebuildStale else getch()
|
||||
if ch == 'q':
|
||||
finish(0)
|
||||
elif ch == b's':
|
||||
elif ch == 's':
|
||||
checkResult = 'Skip'
|
||||
break
|
||||
elif ch == b'r':
|
||||
elif ch == 'r':
|
||||
checkResult = 'Rebuild'
|
||||
break
|
||||
elif ch == b'a':
|
||||
elif ch == 'a':
|
||||
checkResult = 'Rebuild'
|
||||
rebuildStale = True
|
||||
break
|
||||
|
|
Loading…
Add table
Reference in a new issue