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

Backspace key causes H19term.py to crash out (tested on Pi 3B+) #1

Open
riwide opened this issue Apr 10, 2018 · 6 comments
Open

Backspace key causes H19term.py to crash out (tested on Pi 3B+) #1

riwide opened this issue Apr 10, 2018 · 6 comments

Comments

@riwide
Copy link

riwide commented Apr 10, 2018

Using H19Term.py on Raspberry Pi 3B+, the backspace key causes the program to crash out. See details below:
pi@pi3b:/Downloads/h19term-master $ ./h19term.py
Traceback (most recent call last):
File "./h19term.py", line 1854, in
curses.wrapper(term.main, term, sio)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "./h19term.py", line 1791, in main
self.process_key(c, sio, scr, scn, st)
File "./h19term.py", line 1729, in process_key
self.sio_write(sio, chr(c))
ValueError: chr() arg not in range(256)
pi@pi3b:
/Downloads/h19term-master $

@riwide
Copy link
Author

riwide commented Apr 10, 2018

Dump seemed crossed out, try again:
~/Downloads/h19term-master $ ./h19term.py
Traceback (most recent call last):
File "./h19term.py", line 1854, in
curses.wrapper(term.main, term, sio)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "./h19term.py", line 1791, in main
self.process_key(c, sio, scr, scn, st)
File "./h19term.py", line 1729, in process_key
self.sio_write(sio, chr(c))
ValueError: chr() arg not in range(256)
~/Downloads/h19term-master $

@riwide
Copy link
Author

riwide commented Apr 10, 2018

verified that problem also occurs on macos osx 10.12.4 with python2.
fyi: pylint comes up with a lot of messages when run against h10term.rc - I had hoped it would be cleaner and any messages from pylint might relate to the problem described.

@horga83
Copy link
Owner

horga83 commented Apr 14, 2018 via email

@riwide
Copy link
Author

riwide commented Apr 15, 2018 via email

@horga83
Copy link
Owner

horga83 commented Apr 15, 2018 via email

@riwide
Copy link
Author

riwide commented Apr 15, 2018 via email

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

No branches or pull requests

2 participants