-
-
Notifications
You must be signed in to change notification settings - Fork 164
disablePrint option for print_summary() #48
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
disablePrint option for print_summary() #48
Conversation
While I can't use curses, it's not urgent for me to merge. Anyway, can we solve somehow colors in |
Hi DaWe35! Nice idea! Lets try it!
into the
If you modify the var names to be compliant with the code style, I will merge this and we can try to make it beautiful by removing colours on windows or maybe we find a solution to get them working in curses. Best regards, |
I downloaded your fork and tryed to create an example like Can you add an example file to your fork please? |
I want to create an image of the print_summary() output and make it available via webserver and include it in the README on Github. And now I have to make the same change as you did... Even if this PR is not ready, i merge it - or I would create a conflict with your PR... |
I have rewritten the var names and added some code. |
Hey! Thank you, and thanks for the review. I'll test it on windows tomorrow :) |
You can find an example here (it's not updated, it uses the wrong-style disablePrint): https://github.com/DaWe35/Binance-websocket-api-to-mysql/tree/courses |
Thanks will try. Thats why i needed to pull fast :) |
Description
Option disablePrint added for print_summary(), example:
binance_websocket_api_manager.print_summary(add_string=your_text, disablePrint=True)
Motivation and Context
Printing every second is not the best, sometimes the screen flashes when printing is slow and errors get lost in plenty of printed text. I tried to do the windows update with curses, and I think it would be great to use curses in the examples too.
The only problem that I experienced (on windows 10) that color codes do not work with curses.

PR Details
Tested and 100% backward compatible.
Types of changes
Checklist
CONTRIBUTING
document.