From 6d2a6ad31830b3fdc217efe8e5dec3779a834c75 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 13:19:04 +0000 Subject: [PATCH 1/2] Extra line --- notifications_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notifications_client.py b/notifications_client.py index acb07182f..c14332ecf 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -637,6 +637,7 @@ def runNotificationsClient(baseDir: str, proxyType: str, httpPrefix: str, currTimeline = '' currInboxIndex = 0 if not showNewPosts: + print('') currInboxIndex = 0 _showLocalBox('inbox', screenreader, systemLanguage, espeak, From 808fb1c10b67673c760059ffd67f483fff299362 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 13:28:37 +0000 Subject: [PATCH 2/2] Show posts as they arrive --- notifications_client.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/notifications_client.py b/notifications_client.py index c14332ecf..a2a058459 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -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']