From beab5cd791a4dc0cf6d22c4c5eb6d6b1d28a574b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Jul 2026 14:13:45 -0400 Subject: [PATCH] Fix for modern python ioctl Need to actually feed full buffer into modern python ioctl calls. --- confluent_client/bin/confetty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index a142b6c2..4fe8ebb8 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -469,7 +469,7 @@ def do_command(command, server): height, width = 31, 100 if not opts.headless: height, width = struct.unpack( - 'hh', fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, b'....'))[:2] + 'hh', fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, b'........')[:4])[:2] startrequest['parameters']['width'] = width startrequest['parameters']['height'] = height for param in argv[2:]: @@ -625,7 +625,7 @@ def do_resize(a, b): if not inconsole: return height, width = struct.unpack( - 'hh', fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, b'....'))[:2] + 'hh', fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, b'........')[:4])[:2] tlvdata.send(session.connection, {'operation': 'resize', 'width': width, 'height': height})