Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: listen to terminal events in the watch mode #3931

Merged
merged 12 commits into from
Mar 24, 2022

Conversation

therustmonk
Copy link
Contributor

@therustmonk therustmonk commented Mar 18, 2022

Description

It adds an events stream to listens to key press events in the watch mode.

Another changes:

  • cli_loop function replaced with the CliLoop struct that also moved to a separate module
  • status_loop replaced with the CliLoop struct

Motivation and Context

We should suggest the user how to exit the watch mode.
Also the cli loop reduced and divided into several parts.

How Has This Been Tested?

Manually

@therustmonk therustmonk force-pushed the watch-key-press branch 2 times, most recently from 1e245e9 to 379f282 Compare March 22, 2022 07:06
@therustmonk therustmonk marked this pull request as ready for review March 22, 2022 07:06
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@stringhandler stringhandler merged commit 869abd3 into tari-project:development Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants