From 12e2388af02cc3618630f6a08ce4df4f924ce7cb Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 7 Sep 2022 22:39:15 -0500 Subject: [PATCH] fix: remove log call on unknown ansi code If this happens during a tcell application, it can garble the screen. Signed-off-by: Tim Culverhouse --- termutil/ansi.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/termutil/ansi.go b/termutil/ansi.go index 8376507..8fffd45 100644 --- a/termutil/ansi.go +++ b/termutil/ansi.go @@ -1,7 +1,5 @@ package termutil -import "log" - func (t *Terminal) handleANSI(readChan chan MeasuredRune) (renderRequired bool) { // if the byte is an escape character, read the next byte to determine which one r := <-readChan @@ -44,7 +42,7 @@ func (t *Terminal) handleANSI(readChan chan MeasuredRune) (renderRequired bool) case '^': return t.handlePrivacyMessage(readChan) default: - log.Printf("UNKNOWN ESCAPE SEQUENCE: 0x%X", r.Rune) + // log.Printf("UNKNOWN ESCAPE SEQUENCE: 0x%X", r.Rune) return false } -- 2.45.2