You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/lib/python3.11/site-packages/pyte/streams.py", line 424, in feed
super(ByteStream, self).feed(data_str)
File "/opt/homebrew/lib/python3.11/site-packages/pyte/streams.py", line 205, in feed
taking_plain_text = send(data[offset:offset + 1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pyte/streams.py", line 213, in _send_to_parser
return self._parser.send(data)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pyte/streams.py", line 355, in _parser_fsm
csi_dispatch[char](*params)
TypeError: Screen.cursor_to_column() takes from 1 to 2 positional arguments but 3 were given
With the help of ChatGPT I was able to understand that there are ' in the CSI sequence
for instance: "1;3'{"
but I cannot find out why they are there. does anyone have an idea and maybe a way to solve this nicely?
I copied this code and replaced "$" with "'" and that does prevent the error from showing. but I do not really understand if that just ignores the whole sequence?
So I am using pyte to connect to an OpenVMS terminal and this sequence of bytes causes a problem (when opening the text editor)
This is a small preview of the data that causes an issue for me, and how to reproduce the error
Causes the following error:
With the help of ChatGPT I was able to understand that there are
'
in the CSI sequencefor instance:
"1;3'{"
but I cannot find out why they are there. does anyone have an idea and maybe a way to solve this nicely?
I copied this code and replaced
"$"
with"'"
and that does prevent the error from showing. but I do not really understand if that just ignores the whole sequence?pyte/pyte/streams.py
Lines 341 to 345 in 636b679
The text was updated successfully, but these errors were encountered: