You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2024/10/08 13:44:01 UTC
(plc4x-extras) 02/02: fix(plc4go/plc4xbrowser): fix color rendering
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-extras.git
commit 1c9854f745f3cf5beac92b3c8b012a7ad31bdbe4
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Oct 8 15:43:48 2024 +0200
fix(plc4go/plc4xbrowser): fix color rendering
---
plc4go/tools/plc4xbrowser/ui/ui.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4go/tools/plc4xbrowser/ui/ui.go b/plc4go/tools/plc4xbrowser/ui/ui.go
index 7e1878c..a59a455 100644
--- a/plc4go/tools/plc4xbrowser/ui/ui.go
+++ b/plc4go/tools/plc4xbrowser/ui/ui.go
@@ -286,7 +286,7 @@ func buildOutputArea(newPrimitive func(text string) tview.Primitive, application
receivedMessagesList.AddItem(fmt.Sprintf("No %d @%s", messageNumber, receiveTime.Format("15:04:05.999999")), "", 0x0, func() {
if ok := jumpToMessageItem(messageNumber); !ok {
plc4xBrowserLog.Debug().Msg("Adding new message to console output")
- _, _ = fmt.Fprintf(messageOutput, "Message nr: %d\n[\"%d\"]%s[\"\"]\n", messageNumber, messageNumber, message)
+ _, _ = fmt.Fprintf(tview.ANSIWriter(messageOutput), "Message nr: %[1]d\n[\"%[1]d\"]%s[\"\"]\n", messageNumber, message)
jumpToMessageItem(messageNumber)
}
})