Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

rpio-curses doesn't start when terminal height is 24 or 25 lines with no indication of the problem #12

Open
mcherry1974 opened this issue Oct 29, 2013 · 0 comments

Comments

@mcherry1974
Copy link

If the terminal height is 23 lines an error message is output that says what the problem is:
"Your terminal window is too small. rpio-curses needs 24 lines and 70 columns (you have 23 lines, 80 columns)."

If the terminal height is 24 or 25 lines, the following is output:
Traceback (most recent call last):
File "/usr/local/bin/rpio-curses", line 5, in
pkg_resources.run_script('RPIO==0.10.0', 'rpio-curses')
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 507, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.49-py2.7.egg/pkg_resources.py", line 1272, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/EGG-INFO/scripts/rpio-curses", line 495, in
main()
File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/EGG-INFO/scripts/rpio-curses", line 461, in main
d.start()
File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/EGG-INFO/scripts/rpio-curses", line 417, in start
self.draw()
File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv6l.egg/EGG-INFO/scripts/rpio-curses", line 182, in draw
screen.addstr(pos_y, POS_GPIOLIST_X, option)
_curses.error: addstr() returned ERR

The output should offer a resolution OR the documentation needs to clearly specify a terminal window size to use

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant