From 9d474591f94f3e7c66c9ee70f900b7785b641525 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 May 2026 19:44:05 -0400 Subject: [PATCH] Make 'titlebars' more prominent --- confluent_client/bin/nodeconsole | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index 0794a3cc..9ed3cd91 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -572,7 +572,7 @@ def iterm_draw(bindata, width, height): def kitty_draw(bindata, width, height): data = base64.b64encode(bindata) - preamble = '\x1b_Ga=T,f=100' + preamble = '\x1b_Ga=T,f=100,q=2' if height: preamble += f',r={height},c={width}' #sys.stdout.write(repr(preamble)) @@ -639,10 +639,10 @@ def prep_node_tile(node): sys.stdout.write('\x1b[43m') else: sys.stdout.write('\x1b[44m') - sys.stdout.write('▏' + node) + sys.stdout.write(f'▏{node:^{cwidth - 2}}▕') if node in focused_nodes: sys.stdout.write('\x1b[0m') - cursor_left(len(node) + 1) + cursor_left(cwidth) cursor_down() def reset_cursor(node): @@ -703,7 +703,6 @@ async def do_screenshot(): if a: resized = True # on a window resize, clear the old stuff - # ideally we'd retain the images and redraw them sys.stdout.write('\x1bc') global numrows global cwidth