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

Event selection dialog loads events dynamically #6

Closed
wants to merge 13 commits into from

Conversation

Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
@sambuddhabasu
Copy link
Owner

@sambuddhabasu sambuddhabasu commented May 6, 2016

No description provided.

sambuddhabasu and others added 12 commits May 6, 2016
Tor runlevels are followed by the rest of the events in the event selection dialog
Dialog was functional but had a few rough edges...

* Canceling the dialog didn't work. It still applied any selections
  we had made due to in-place modifications of our 'initial_selection'.

* Simplified our conditionals and dropped the tor_events two
  dimensional array (unnecessary, and made my head hurt).

* Showing the same runlevel names for tor and nyx. Users don't care
  about our naming differences, and this both looks better and makes
  them line up.

* Moved our 'Ok' and 'Cancel' options to the lower right for
  consistency.

* Use 'T' connectors for the horizontal line. I need to figure out
  a better option than _addch() but meh. Good enough for now.
Alternate that'll soon be replacing the dialog for selecting events...

  https://trac.torproject.org/projects/tor/ticket/18499
Using a dynamic rather than static height for our event dialog so it grows and
shrinks to match the number of events tor has.
This is something Sambuddha had that I changed, but on reflection his behavior
was better. When on the top row of the event dialog and press 'up' leave the
cursor where it is (rather than move it to the first position).
Avoiding the small (but very noticeable) delay terminals have by default when
pressing the 'esc' key. Caught and fix proposed by patacca.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment