-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
Dump seemed crossed out, try again: |
verified that problem also occurs on macos osx 10.12.4 with python2. |
Had a quick look at this.
One must set your terminal emulator to have CTRL-H for a backspace?
Looks like I may have missed this in the docs, also I will do a test
for this when running. Gnome Terminal and XFCE-terminal can be set
from the preferences, I expect most others as well. I set this in a
profile and run h19term with that.
George
…On Tue, 2018-04-10 at 08:32 +0000, riwide wrote:
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 $
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
19term","title":"horga83/h19term","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/ass
ets/143418/17495839/a5054eac-5d88-11e6-95fc-
7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
b52498112777.png","action":{"name":"Open in GitHub","url":"https://gi
thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
***@***.*** in #1: Dump seemed crossed out, try
again:\r\n~/Downloads/h19term-master $ ./h19term.py\r\nTraceback
(most recent call last):\r\n File \"./h19term.py\", line 1854, in
\u003cmodule\u003e\r\n curses.wrapper(term.main, term,
sio)\r\n File \"/usr/lib/python2.7/curses/wrapper.py\", line 43, in
wrapper\r\n return func(stdscr, *args, **kwds)\r\n File
\"./h19term.py\", line 1791, in main\r\n self.process_key(c, sio,
scr, scn, st)\r\n File \"./h19term.py\", line 1729, in
process_key\r\n self.sio_write(sio, chr(c))\r\nValueError: chr()
arg not in range(256)\r\n~/Downloads/h19term-master $
\r\n"}],"action":{"name":"View Issue","url":"https://github.com/horga
83/h19term/issues/1#issuecomment-380019093"}}}
|
I comprehend that one should configure H19Term for correct behaviour
against the backend, but I would not expect the terminal to crash if
unexpected data is received, especially as sometimes one chooses a terminal
emulation as best but not exact match to host end. Have you written H19term
with sufficient defensive programming?
I was using h19term as configured by default to a CP/M backend running a
number of software packages configured for H19/Z19.
Regards
Richard
…On 14 April 2018 at 23:20, horga83 ***@***.***> wrote:
Had a quick look at this.
One must set your terminal emulator to have CTRL-H for a backspace?
Looks like I may have missed this in the docs, also I will do a test
for this when running. Gnome Terminal and XFCE-terminal can be set
from the preferences, I expect most others as well. I set this in a
profile and run h19term with that.
George
On Tue, 2018-04-10 at 08:32 +0000, riwide wrote:
> 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 $
>
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
>
>
>
>
>
>
>
>
>
> {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
> 5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
> 19term","title":"horga83/h19term","subtitle":"GitHub
> repository","main_image_url":"https://cloud.githubusercontent.com/ass
> ets/143418/17495839/a5054eac-5d88-11e6-95fc-
> 7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
> .com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
> b52498112777.png","action":{"name":"Open in GitHub","url":"https://gi
> thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
> ***@***.*** in #1: Dump seemed crossed out, try
> again:\r\n~/Downloads/h19term-master $ ./h19term.py\r\nTraceback
> (most recent call last):\r\n File \"./h19term.py\", line 1854, in
> \u003cmodule\u003e\r\n curses.wrapper(term.main, term,
> sio)\r\n File \"/usr/lib/python2.7/curses/wrapper.py\", line 43, in
> wrapper\r\n return func(stdscr, *args, **kwds)\r\n File
> \"./h19term.py\", line 1791, in main\r\n self.process_key(c, sio,
> scr, scn, st)\r\n File \"./h19term.py\", line 1729, in
> process_key\r\n self.sio_write(sio, chr(c))\r\nValueError: chr()
> arg not in range(256)\r\n~/Downloads/h19term-master $
> \r\n"}],"action":{"name":"View Issue","url":"https://github.com/horga
> 83/h19term/issues/1#issuecomment-380019093"}}}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Acoj6pTMCQcv5ujBbXM655Wg0mM4wqo_ks5tonYygaJpZM4TN0Xa>
.
|
Defensive programming? No, no, no, no there will be none of that here,
I prefer instead to use offensive programming, something that will
really annoy the user! Just look how well it's worked so far:-)
No worries Richard, it'll get fixed.
George
…On Sun, 2018-04-15 at 09:18 +0000, riwide wrote:
I comprehend that one should configure H19Term for correct behaviour
against the backend, but I would not expect the terminal to crash if
unexpected data is received, especially as sometimes one chooses a
terminal
emulation as best but not exact match to host end. Have you written
H19term
with sufficient defensive programming?
I was using h19term as configured by default to a CP/M backend
running a
number of software packages configured for H19/Z19.
Regards
Richard
On 14 April 2018 at 23:20, horga83 ***@***.***> wrote:
> Had a quick look at this.
>
> One must set your terminal emulator to have CTRL-H for a backspace?
> Looks like I may have missed this in the docs, also I will do a
test
> for this when running. Gnome Terminal and XFCE-terminal can be set
> from the preferences, I expect most others as well. I set this in a
> profile and run h19term with that.
>
> George
>
> On Tue, 2018-04-10 at 08:32 +0000, riwide wrote:
> > 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 $
> >
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub, or mute the
thread.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
> >
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
> > 19term","title":"horga83/h19term","subtitle":"GitHub
> > repository","main_image_url":"https://cloud.githubusercontent.com
/ass
> > ets/143418/17495839/a5054eac-5d88-11e6-95fc-
> > 7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercon
tent
> > .com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
> > b52498112777.png","action":{"name":"Open in GitHub","url":"https:
//gi
> >
thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
> > ***@***.*** in #1: Dump seemed crossed out, try
> > again:\r\n~/Downloads/h19term-master $ ./h19term.py\r\nTraceback
> > (most recent call last):\r\n File \"./h19term.py\", line 1854, in
> > \u003cmodule\u003e\r\n curses.wrapper(term.main, term,
> > sio)\r\n File \"/usr/lib/python2.7/curses/wrapper.py\", line 43,
in
> > wrapper\r\n return func(stdscr, *args, **kwds)\r\n File
> > \"./h19term.py\", line 1791, in main\r\n self.process_key(c, sio,
> > scr, scn, st)\r\n File \"./h19term.py\", line 1729, in
> > process_key\r\n self.sio_write(sio, chr(c))\r\nValueError: chr()
> > arg not in range(256)\r\n~/Downloads/h19term-master $
> > \r\n"}],"action":{"name":"View Issue","url":"https://github.com/h
orga
> > 83/h19term/issues/1#issuecomment-380019093"}}}
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1 (comment)
>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/Acoj6pTMCQcv5ujB
bXM655Wg0mM4wqo_ks5tonYygaJpZM4TN0Xa>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
19term","title":"horga83/h19term","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/ass
ets/143418/17495839/a5054eac-5d88-11e6-95fc-
7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
b52498112777.png","action":{"name":"Open in GitHub","url":"https://gi
thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
***@***.*** in #1: I comprehend that one should configure
H19Term for correct behaviour\nagainst the backend, but I would not
expect the terminal to crash if\nunexpected data is received,
especially as sometimes one chooses a terminal\nemulation as best but
not exact match to host end. Have you written H19term\nwith
sufficient defensive programming?\n\nI was using h19term as
configured by default to a CP/M backend running a\nnumber of software
packages configured for H19/Z19.\n\nRegards\n\nRichard\n\n\n\n\n\nOn
14 April 2018 at 23:20, horga83 ***@***.***\u003e
wrote:\n\n\u003e Had a quick look at this.\n\u003e\n\u003e One must
set your terminal emulator to have CTRL-H for a backspace?\n\u003e
Looks like I may have missed this in the docs, also I will do a
test\n\u003e for this when running. Gnome Terminal and XFCE-terminal
can be set\n\u003e from the preferences, I expect most others as
well. I set this in a\n\u003e profile and run h19term with
that.\n\u003e\n\u003e George\n\u003e\n\u003e On Tue, 2018-04-10 at
08:32 +0000, riwide wrote:\n\u003e \u003e Dump seemed crossed out,
try again:\n\u003e \u003e\n\u003e \u003e ~/Downloads/h19term-master $
./h19term.py\n\u003e \u003e\n\u003e \u003e Traceback (most recent
call last):\n\u003e \u003e\n\u003e \u003e File \"./h19term.py\", line
1854, in\n\u003e \u003e\n\u003e \u003e curses.wrapper(term.main,
term, sio)\n\u003e \u003e\n\u003e \u003e File
\"/usr/lib/python2.7/curses/wrapper.py\", line 43, in wrapper\n\u003e
\u003e\n\u003e \u003e return func(stdscr, *args, **kwds)\n\u003e
\u003e\n\u003e \u003e File \"./h19term.py\", line 1791, in
main\n\u003e \u003e\n\u003e \u003e self.process_key(c, sio, scr, scn,
st)\n\u003e \u003e\n\u003e \u003e File \"./h19term.py\", line 1729,
in process_key\n\u003e \u003e\n\u003e \u003e self.sio_write(sio,
chr(c))\n\u003e \u003e\n\u003e \u003e ValueError: chr() arg not in
range(256)\n\u003e \u003e\n\u003e \u003e ~/Downloads/h19term-master
$\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e —\n\u003e \u003e You
are receiving this because you are subscribed to this thread.\n\u003e
\u003e Reply to this email directly, view it on GitHub, or mute the
thread.\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e
\u003e\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e
\u003e\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e
{\"api_version\":\"1.0\",\"publisher\":{\"api_key\":\"05dde50f1d1a384
dd78767c5\n\u003e \u003e
5493e4bb\",\"name\":\"GitHub\"},\"entity\":{\"external_key\":\"github
/horga83/h\n\u003e \u003e
19term\",\"title\":\"horga83/h19term\",\"subtitle\":\"GitHub\n\u003e
\u003e repository\",\"main_image_url\":\"https://cloud.githubusercont
ent.com/ass\n\u003e \u003e ets/143418/17495839/a5054eac-5d88-11e6-
95fc-\n\u003e \u003e 7290892c7bb5.png\",\"avatar_image_url\":\"https:
//cloud.githubusercontent\n\u003e \u003e
.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-\n\u003e \u003e
b52498112777.png\",\"action\":{\"name\":\"Open in GitHub\",\"url\":\"
https://gi\n\u003e \u003e
thub.com/horga83/h19term\"}},\"updates\":{\"snippets\":[{\"icon\":\"P
ERSON\",\"\n\u003e \u003e ***@***.*** in #1: Dump seemed
crossed out, try\n\u003e \u003e again:\\r\\n~/Downloads/h19term-
master $ ./h19term.py\\r\\nTraceback\n\u003e \u003e (most recent call
last):\\r\\n File \\\"./h19term.py\\\", line 1854, in\n\u003e \u003e
\\u003cmodule\\u003e\\r\\n curses.wrapper(term.main, term,\n\u003e
\u003e sio)\\r\\n File \\\"/usr/lib/python2.7/curses/wrapper.py\\\",
line 43, in\n\u003e \u003e wrapper\\r\\n return func(stdscr, *args,
**kwds)\\r\\n File\n\u003e \u003e \\\"./h19term.py\\\", line 1791, in
main\\r\\n self.process_key(c, sio,\n\u003e \u003e scr, scn,
st)\\r\\n File \\\"./h19term.py\\\", line 1729, in\n\u003e \u003e
process_key\\r\\n self.sio_write(sio, chr(c))\\r\\nValueError:
chr()\n\u003e \u003e arg not in range(256)\\r\\n~/Downloads/h19term-
master $\n\u003e \u003e \\r\\n\"}],\"action\":{\"name\":\"View
Issue\",\"url\":\"https://github.com/horga\n\u003e \u003e
83/h19term/issues/1#issuecomment-380019093\"}}}\n\u003e\n\u003e
—\n\u003e You are receiving this because you authored the
thread.\n\u003e Reply to this email directly, view it on
GitHub\n\u003e \u003chttps://github.com/horga83/h19term/issues/1#issu
ecomment-381364693\u003e, or mute\n\u003e the thread\n\u003e \u003cht
tps://github.com/notifications/unsubscribe-
auth/Acoj6pTMCQcv5ujBbXM655Wg0mM4wqo_ks5tonYygaJpZM4TN0Xa\u003e\n\u00
3e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github
.com/horga83/h19term/issues/1#issuecomment-381392101"}}}
|
Cheers, love the humour!
By the way, defensive programming is often frowned upon, both parts of a
design should work together without need for it, but of course in this
instance we are constrained by the existing application designs, user
choices and lost documentation.
Richard
…On Sun, 15 Apr 2018, 16:18 horga83, ***@***.***> wrote:
Defensive programming? No, no, no, no there will be none of that here,
I prefer instead to use offensive programming, something that will
really annoy the user! Just look how well it's worked so far:-)
No worries Richard, it'll get fixed.
George
On Sun, 2018-04-15 at 09:18 +0000, riwide wrote:
> I comprehend that one should configure H19Term for correct behaviour
>
> against the backend, but I would not expect the terminal to crash if
>
> unexpected data is received, especially as sometimes one chooses a
> terminal
>
> emulation as best but not exact match to host end. Have you written
> H19term
>
> with sufficient defensive programming?
>
>
>
> I was using h19term as configured by default to a CP/M backend
> running a
>
> number of software packages configured for H19/Z19.
>
>
>
> Regards
>
>
>
> Richard
>
>
>
>
>
>
>
>
>
>
>
> On 14 April 2018 at 23:20, horga83 ***@***.***> wrote:
>
>
>
> > Had a quick look at this.
>
> >
>
> > One must set your terminal emulator to have CTRL-H for a backspace?
>
> > Looks like I may have missed this in the docs, also I will do a
> test
>
> > for this when running. Gnome Terminal and XFCE-terminal can be set
>
> > from the preferences, I expect most others as well. I set this in a
>
> > profile and run h19term with that.
>
> >
>
> > George
>
> >
>
> > On Tue, 2018-04-10 at 08:32 +0000, riwide wrote:
>
> > > 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 $
>
> > >
>
> > >
>
> > > —
>
> > > You are receiving this because you are subscribed to this thread.
>
> > > Reply to this email directly, view it on GitHub, or mute the
> thread.
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
>
> > >
> {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
>
> > >
> 5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
>
> > > 19term","title":"horga83/h19term","subtitle":"GitHub
>
> > > repository","main_image_url":"https://cloud.githubusercontent.com
> /ass
>
> > > ets/143418/17495839/a5054eac-5d88-11e6-95fc-
>
> > > 7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercon
> tent
>
> > > .com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
>
> > > b52498112777.png","action":{"name":"Open in GitHub","url":"https:
> //gi
>
> > >
> thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
>
> > > ***@***.*** in #1: Dump seemed crossed out, try
>
> > > again:\r\n~/Downloads/h19term-master $ ./h19term.py\r\nTraceback
>
> > > (most recent call last):\r\n File \"./h19term.py\", line 1854, in
>
> > > \u003cmodule\u003e\r\n curses.wrapper(term.main, term,
>
> > > sio)\r\n File \"/usr/lib/python2.7/curses/wrapper.py\", line 43,
> in
>
> > > wrapper\r\n return func(stdscr, *args, **kwds)\r\n File
>
> > > \"./h19term.py\", line 1791, in main\r\n self.process_key(c, sio,
>
> > > scr, scn, st)\r\n File \"./h19term.py\", line 1729, in
>
> > > process_key\r\n self.sio_write(sio, chr(c))\r\nValueError: chr()
>
> > > arg not in range(256)\r\n~/Downloads/h19term-master $
>
> > > \r\n"}],"action":{"name":"View Issue","url":"https://github.com/h
> orga
>
> > > 83/h19term/issues/1#issuecomment-380019093"}}}
>
> >
>
> > —
>
> > You are receiving this because you authored the thread.
>
> > Reply to this email directly, view it on GitHub
>
> > <#1 (comment)
> >, or mute
>
> > the thread
>
> > <https://github.com/notifications/unsubscribe-auth/Acoj6pTMCQcv5ujB
> bXM655Wg0mM4wqo_ks5tonYygaJpZM4TN0Xa>
>
> > .
>
> >
>
>
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
>
>
>
>
>
>
>
>
>
> {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
> 5493e4bb","name":"GitHub"},"entity":{"external_key":"github/horga83/h
> 19term","title":"horga83/h19term","subtitle":"GitHub
> repository","main_image_url":"https://cloud.githubusercontent.com/ass
> ets/143418/17495839/a5054eac-5d88-11e6-95fc-
> 7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
> .com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
> b52498112777.png","action":{"name":"Open in GitHub","url":"https://gi
> thub.com/horga83/h19term"}},"updates":{"snippets":[{"icon":"PERSON","
> ***@***.*** in #1: I comprehend that one should configure
> H19Term for correct behaviour\nagainst the backend, but I would not
> expect the terminal to crash if\nunexpected data is received,
> especially as sometimes one chooses a terminal\nemulation as best but
> not exact match to host end. Have you written H19term\nwith
> sufficient defensive programming?\n\nI was using h19term as
> configured by default to a CP/M backend running a\nnumber of software
> packages configured for H19/Z19.\n\nRegards\n\nRichard\n\n\n\n\n\nOn
> 14 April 2018 at 23:20, horga83 ***@***.***\u003e
> wrote:\n\n\u003e Had a quick look at this.\n\u003e\n\u003e One must
> set your terminal emulator to have CTRL-H for a backspace?\n\u003e
> Looks like I may have missed this in the docs, also I will do a
> test\n\u003e for this when running. Gnome Terminal and XFCE-terminal
> can be set\n\u003e from the preferences, I expect most others as
> well. I set this in a\n\u003e profile and run h19term with
> that.\n\u003e\n\u003e George\n\u003e\n\u003e On Tue, 2018-04-10 at
> 08:32 +0000, riwide wrote:\n\u003e \u003e Dump seemed crossed out,
> try again:\n\u003e \u003e\n\u003e \u003e ~/Downloads/h19term-master $
> ./h19term.py\n\u003e \u003e\n\u003e \u003e Traceback (most recent
> call last):\n\u003e \u003e\n\u003e \u003e File \"./h19term.py\", line
> 1854, in\n\u003e \u003e\n\u003e \u003e curses.wrapper(term.main,
> term, sio)\n\u003e \u003e\n\u003e \u003e File
> \"/usr/lib/python2.7/curses/wrapper.py\", line 43, in wrapper\n\u003e
> \u003e\n\u003e \u003e return func(stdscr, *args, **kwds)\n\u003e
> \u003e\n\u003e \u003e File \"./h19term.py\", line 1791, in
> main\n\u003e \u003e\n\u003e \u003e self.process_key(c, sio, scr, scn,
> st)\n\u003e \u003e\n\u003e \u003e File \"./h19term.py\", line 1729,
> in process_key\n\u003e \u003e\n\u003e \u003e self.sio_write(sio,
> chr(c))\n\u003e \u003e\n\u003e \u003e ValueError: chr() arg not in
> range(256)\n\u003e \u003e\n\u003e \u003e ~/Downloads/h19term-master
> $\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e —\n\u003e \u003e You
> are receiving this because you are subscribed to this thread.\n\u003e
> \u003e Reply to this email directly, view it on GitHub, or mute the
> thread.\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e
> \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e
> \u003e\n\u003e \u003e\n\u003e \u003e\n\u003e \u003e
> {\"api_version\":\"1.0\",\"publisher\":{\"api_key\":\"05dde50f1d1a384
> dd78767c5\n\u003e \u003e
> 5493e4bb\",\"name\":\"GitHub\"},\"entity\":{\"external_key\":\"github
> /horga83/h\n\u003e \u003e
> 19term\",\"title\":\"horga83/h19term\",\"subtitle\":\"GitHub\n\u003e
> \u003e repository\",\"main_image_url\":\"https://cloud.githubusercont
> ent.com/ass\n\u003e <http://ent.com/ass%5Cn%5Cu003e> \u003e
ets/143418/17495839/a5054eac-5d88-11e6-
> 95fc-\n\u003e \u003e 7290892c7bb5.png\",\"avatar_image_url\":\"https:
> //cloud.githubusercontent\n\u003e \u003e
> .com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-\n\u003e \u003e
> b52498112777.png\",\"action\":{\"name\":\"Open in GitHub\",\"url\":\"
> https://gi\n\u003e \u003e
> thub.com/horga83/h19term\ <http://thub.com/horga83/h19term%5C>
"}},\"updates\":{\"snippets\":[{\"icon\":\"P
> ERSON\",\"\n\u003e \u003e ***@***.*** in #1: Dump seemed
> crossed out, try\n\u003e \u003e again:\\r\\n~/Downloads/h19term-
> master $ ./h19term.py\\r\\nTraceback\n\u003e \u003e (most recent call
> last):\\r\\n File \\\"./h19term.py\\\", line 1854, in\n\u003e \u003e
> \\u003cmodule\\u003e\\r\\n curses.wrapper(term.main, term,\n\u003e
> \u003e sio)\\r\\n File \\\"/usr/lib/python2.7/curses/wrapper.py\\\",
> line 43, in\n\u003e \u003e wrapper\\r\\n return func(stdscr, *args,
> **kwds)\\r\\n File\n\u003e \u003e \\\"./h19term.py\\\", line 1791, in
> main\\r\\n self.process_key(c, sio,\n\u003e \u003e scr, scn,
> st)\\r\\n File \\\"./h19term.py\\\", line 1729, in\n\u003e \u003e
> process_key\\r\\n self.sio_write(sio, chr(c))\\r\\nValueError:
> chr()\n\u003e \u003e arg not in range(256)\\r\\n~/Downloads/h19term-
> master $\n\u003e \u003e \\r\\n\"}],\"action\":{\"name\":\"View
> Issue\",\"url\":\"https://github.com/horga\n\u003e \u003e
> 83/h19term/issues/1#issuecomment-380019093\"}}}\n\u003e\n\u003e
> —\n\u003e You are receiving this because you authored the
> thread.\n\u003e Reply to this email directly, view it on
> GitHub\n\u003e \u003chttps://github.com/horga83/h19term/issues/1#issu
> ecomment-381364693\u003e, or mute\n\u003e the thread\n\u003e \u003cht
> tps://github.com/notifications/unsubscribe-
> auth/Acoj6pTMCQcv5ujBbXM655Wg0mM4wqo_ks5tonYygaJpZM4TN0Xa\u003e\n\u00
> 3e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github
> .com/horga83/h19term/issues/1#issuecomment-381392101"}}}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Acoj6i4Yvoo6svY_6pPh2iqnu4t1Liomks5to2TegaJpZM4TN0Xa>
.
|
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/Downloads/h19term-master $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:
The text was updated successfully, but these errors were encountered: