[PATCH tcell-term] fix: remove log call on unknown ansi code
Export this patch
If this happens during a tcell application, it can garble the screen.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
---
termutil/ansi.go | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/termutil/ansi.go b/termutil/ansi.go
index 8376507e1840..8fffd45a1547 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.37.3