Closed DaWe35 closed 4 years ago
I downloaded the example from your branch and get this error:
oliver@valkyrie ~/pyCharmProjects/unicorn-binance-websocket-api $ ./example_curses.py
Traceback (most recent call last):
File "./example_curses.py", line 121, in <module>
wrapper(main)
File "/opt/anaconda/anaconda/lib/python3.7/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "./example_curses.py", line 117, in main
display.addstr(0, 0, summary)
_curses.error: addwstr() returned ERR
i run it in bash on linux mint. Are you able to run it on linux?
I downloaded the example from your branch and get this error:
oliver@valkyrie ~/pyCharmProjects/unicorn-binance-websocket-api $ ./example_curses.py Traceback (most recent call last): File "./example_curses.py", line 121, in <module> wrapper(main) File "/opt/anaconda/anaconda/lib/python3.7/curses/__init__.py", line 94, in wrapper return func(stdscr, *args, **kwds) File "./example_curses.py", line 117, in main display.addstr(0, 0, summary) _curses.error: addwstr() returned ERR
i run it in bash on linux mint. Are you able to run it on linux?
I think you get this error when the window size is too small. Can you retry in maximized window? I really don't know how to solve it... https://stackoverflow.com/questions/54409924/curses-error-addwstr-returned-err-on-changing-nlines-to-1-on-newwin-method
Ok I have an idea
Okay, now it works on small window
I found another problem (besides the colors), curses just cut the last character of every line.
Okay, I'm getting a black screen with Ubuntu/Putty
I have to read about curses, atm i have no knowledge about it. (https://docs.python.org/3/howto/curses.html)
curses_summary()
that can be used instead of print_summary()
I dont know, do you want to do this together or do you like to try it your self?
One more suggestion, can you create an example_curses.py
file? If it works fine, we can update other example files.
Okay, it needs more testing & doc reading, we found more bugs than I expected. I have to postpone the task until later, cause I have a lot of urgent work now.
No worries! Lets make it uncomplicated, work on it as you like it and when its ready we merge it.
I am happy about your contributions! THANKS!
Description
Discussed in #48
How Has This Been Tested
Tested on Win 10
Types of changes
Checklist