From 6426a081c07231406073099dcfa4481eb2cdbb25 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 26 Oct 2026 09:32:42 -0400 Subject: [PATCH] Skip writing image data that matches current For example, when a cursor is blinking and a recording is happening, we may get the same frame as already on screen. Skip such an update. --- confluent_client/bin/nodeconsole | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index 7c9c4bca..962db035 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -1278,6 +1278,10 @@ def _draw_worker(): _draw_node(node, imgdata, errorstr, firstnodename, cwidth, cheight) def _draw_node(node, imgdata, errorstr, firstnodename, cwidth, cheight): + oldimgdata = imagedatabynode.get(node) + if oldimgdata == imgdata: + # skip redundant screen update + return imagedatabynode[node] = imgdata if node in nodepositions: prep_node_tile(node)