Show posts as they arrive

main
Bob Mottram 2021-03-15 13:28:37 +00:00
parent 6d2a6ad318
commit 808fb1c10b
1 changed files with 7 additions and 0 deletions

View File

@ -371,6 +371,7 @@ def _showLocalBox(boxName: str,
_sayCommand(sayStr, sayStr, screenreader, systemLanguage, espeak)
print('')
return
print(chr(27) + "[2J")
maxPostIndex = len(index)
index.sort(reverse=True)
ctr = 0
@ -603,6 +604,7 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
"""Runs the notifications and screen reader client,
which announces new inbox items
"""
print(chr(27) + "[2J")
bannerFilename = 'theme/default/banner.txt'
if os.path.isfile(bannerFilename):
with open(bannerFilename, 'r') as bannerFile:
@ -803,6 +805,11 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str,
if storeInboxPosts:
_storeMessage(speakerJson, 'inbox')
if not showNewPosts:
print(chr(27) + "[2J")
_showLocalBox(currTimeline,
None, systemLanguage, espeak,
currInboxIndex, 10)
print('')
prevSay = speakerJson['say']