Show posts as they arrive

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