mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #40] [MERGED] Support for manually triggered redraw of terminal. #173
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mum4k/termdash/pull/40
Author: @mum4k
Created: 6/20/2018
Status: ✅ Merged
Merged: 6/22/2018
Merged by: @mum4k
Base:
devel← Head:triggered_redraw📝 Commits (5)
fd18695The fake widget can now draw custom text.0e620cfThe event queue can now report if it is empty.7ceec7aSupport manually triggered redraw.1f41c7aFirst empty the queue, then redraw.42fd5f8Improving test coverage.📊 Changes
6 files changed (+428 additions, -34 deletions)
View changed files
📝
eventqueue/eventqueue.go(+7 -0)📝
eventqueue/eventqueue_test.go(+12 -4)📝
termdash.go(+50 -1)📝
termdash_test.go(+240 -21)📝
widgets/fakewidget/fakewidget.go(+31 -8)📝
widgets/fakewidget/fakewidget_test.go(+88 -0)📄 Description
-- Race1: Waiting for event queue to empty before examining the fake terminal. This ensures that events were processed.
-- Race2: Moving the test of terminal resize into the group of tests that use the triggered redraw, as that is a convenient way of ensuring that we resize, then redraw and then compare the content.
Fixes #27
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.