From 5c36775dd208c043f5038dc4ab140ea8cbd00c69 Mon Sep 17 00:00:00 2001 From: James Mills Date: Mon, 21 Mar 2022 16:14:38 +1000 Subject: [PATCH] Register tcell encodings (Fixes #23) --- client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.go b/client.go index 5e2312b..5e5f5c3 100644 --- a/client.go +++ b/client.go @@ -9,6 +9,7 @@ import ( "github.com/dim13/crc24" "github.com/gdamore/tcell/v2" + "github.com/gdamore/tcell/v2/encoding" "github.com/keys-pub/keys" "github.com/posener/formatter" "github.com/rivo/tview" @@ -131,6 +132,8 @@ func (cc *chatClient) updateChatBox(inCh <-chan string, app *tview.Application, // setScreen initializes the layout and UI components. func (cc *chatClient) SetScreen(inCh <-chan string, outCh chan<- string) { + encoding.Register() + app := tview.NewApplication() title := fmt.Sprintf(