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
4 changes: 2 additions & 2 deletions libs/pyTermTk/TermTk/TTkCore/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def pushToTerminalBufferedNew(self, x, y, w, h):
count = 0
chBk = ''
for x,(da,db,ca,cb) in enumerate(zip(lda,ldb,lca,lcb)):
if da==db and ca==cb:
if da is db and ca is cb:
if not empty:
ansi += "" if not chBk else chBk*count if count<=4 else f"{chBk}\033[{count-1}b"
TTkTerm.push(ansi)
Expand All @@ -782,7 +782,7 @@ def pushToTerminalBufferedNew(self, x, y, w, h):
empty = False
count = 0
chBk = ''
if color != lastcolor:
if color is not lastcolor:
ansi += ("" if not chBk else chBk*count if count<=4 else f"{chBk}\033[{count-1}b") + str(color-lastcolor)
lastcolor = color
count = 0
Expand Down