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

Specifying term_char is broken #41

Open
jorenko opened this issue Nov 18, 2020 · 0 comments
Open

Specifying term_char is broken #41

jorenko opened this issue Nov 18, 2020 · 0 comments

Comments

@jorenko
Copy link

jorenko commented Nov 18, 2020

I get this traceback when specifying term_char on python 3.8:

File "/usr/lib/python3.8/site-packages/vxi11/vxi11.py", line 727, in write
self.write_raw(str(message).encode(encoding))
File "/usr/lib/python3.8/site-packages/vxi11/vxi11.py", line 640, in write_raw
data += term_char
TypeError: can't concat int to bytes

It seems this can be fixed by changing line 639 from:
term_char = str(self.term_char).encode('utf-8')[0]
to:
term_char = str(self.term_char).encode('utf-8')[:1]

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

1 participant