From e6d0d26d84e7d6f31543d18bbdbef1d2146e631f Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 14 Jul 2017 13:19:04 +0200 Subject: [PATCH] Update charmapTTY.py --- play zone/charmapTTY.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/play zone/charmapTTY.py b/play zone/charmapTTY.py index 6f69af0a..35a9c60b 100755 --- a/play zone/charmapTTY.py +++ b/play zone/charmapTTY.py @@ -42,6 +42,7 @@ def autoDecodeVCSA(allData): i = 0 for x in range(cols): data = allData[i: i + 2] + i += 2 if data == b' \x07': #attr = 7 #ink = 7 @@ -49,7 +50,6 @@ def autoDecodeVCSA(allData): #ch = ' ' lineAttrib.append(7) lineText += ' ' - i += 2 continue (sh,) = struct.unpack("=H", data) attr = (sh >> 8) & 0xFF @@ -67,7 +67,6 @@ def autoDecodeVCSA(allData): lineText += charmap[ch] except: lineText += chr('?') - i += 2 allText.append(lineText) allAttrib.append(lineAttrib) return allText, allAttrib