Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vxi11/vxi11.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ def write_raw(self, data):

if self.term_char is not None:
flags = OP_FLAG_TERMCHAR_SET
term_char = str(self.term_char).encode('utf-8')[0]
data += term_char
term_char = str(self.term_char).encode('utf-8')
data += struct.pack('B', ord(term_char))

flags = 0

Expand Down Expand Up @@ -709,7 +709,7 @@ def read_raw(self, num=-1):

if self.term_char is not None:
flags = OP_FLAG_TERMCHAR_SET
term_char = str(self.term_char).encode('utf-8')[0]
term_char = ord(str(self.term_char).encode('utf-8'))

read_data = bytearray()

Expand Down