Merge branch 'main' of ssh://code.freedombone.net:2222/bashrc/epicyon into main

main
Bob Mottram 2021-03-04 15:55:17 +00:00
commit 79377d7ef6
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
"sql": "S-Q-L",
"PSQL": "Postgres S-Q-L",
"SQL": "S-Q-L",
"coop": "co-op",
"KMail": "K-Mail",
"gmail": "G-mail",
"Gmail": "G-mail",
@ -101,6 +102,7 @@ def _speakerPronounce(baseDir: str, sayText: str, translate: {}) -> str:
":-)": '. ' + translate["smile"],
":-(": '. ' + translate["sad face"],
";-)": '. ' + translate["wink"],
"?": "? ",
"*": "",
"(": ",",
")": ","

View File

@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
i, o, e = select.select([sys.stdin], [], [], timeout)
if (i):
text = sys.stdin.readline().strip()
if debug:
print("Text entered: " + sys.stdin.readline().strip())
return sys.stdin.readline().strip()
print("Text entered: " + text)
return text
else:
if debug:
print("Timeout")