mirror of https://gitlab.com/bashrc2/epicyon
Quit command for speaker client
parent
96c8a64a91
commit
d85f221c2e
|
@ -132,5 +132,9 @@ def runSpeakerClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
prevSay = speakerJson['say']
|
prevSay = speakerJson['say']
|
||||||
|
|
||||||
# wait for a while, or until a key is pressed
|
# wait for a while, or until a key is pressed
|
||||||
if _waitForKeypress(30, debug):
|
keyPress = _waitForKeypress(30, debug)
|
||||||
break
|
if keyPress:
|
||||||
|
if keyPress.startswith('/'):
|
||||||
|
keyPress = keyPress[1:]
|
||||||
|
if keyPress == 'q' or keyPress == 'quit' or keyPress == 'exit':
|
||||||
|
break
|
||||||
|
|
Loading…
Reference in New Issue