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

🚧 Improved displaying of lists items #116

Merged
merged 2 commits into from
Feb 3, 2017
Merged

Conversation

guyzmo
Copy link
Owner

@guyzmo guyzmo commented Feb 3, 2017

added a generator logic for displaying lists,
that's following this algorithm:

  • yield the format
  • yield the header (as tuple matching the format)
  • yield content line by line (as tuple matching the format)

and do not display the header when not sending to a tty
and do not display the "cursor display" character voodoo when not
sending to a tty.

fixes #114

@guyzmo guyzmo self-assigned this Feb 3, 2017
added a generator logic for displaying lists,
that's following this algorithm:

- yield the format
- yield the header (as tuple matching the format)
- yield content line by line (as tuple matching the format)

and do not display the header when not sending to a tty
and do not display the "cursor display" character voodoo when not
sending to a tty.

fixes #114

Signed-off-by: Guyzmo <[email protected]>
@guyzmo guyzmo merged commit a7359b3 into devel Feb 3, 2017
@guyzmo guyzmo removed the in progress label Feb 3, 2017
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.

list - minor display issues
1 participant