~ghost08/tcell-term

tcell-term: fix: remove log call on unknown ansi code v1 PROPOSED

Tim Culverhouse: 1
 fix: remove log call on unknown ansi code

 1 files changed, 1 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ghost08/tcell-term/patches/35191/mbox | git am -3
Learn more about email & git

[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