2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 02:22:31 +00:00

Have nodeconsole exit below screenshots

This commit is contained in:
Jarrod Johnson
2025-04-23 09:44:10 -04:00
parent a69113222f
commit af1659dafd

View File

@@ -313,9 +313,9 @@ def reset_cursor(node):
cursor_left(currcolcell)
cursor_up(currrowcell + 1)
nodepositions = {}
if options.screenshot:
def do_screenshot():
global numrows
cwidth = None
cheight = None
sess = client.Command()
@@ -381,6 +381,15 @@ if options.screenshot:
time.sleep(options.interval)
sys.exit(0)
if options.screenshot:
try:
do_screenshot()
except KeyboardInterrupt:
pass
finally:
cursor_down(numrows)
sys.stdout.write('\n')
sys.exit(0)
def kill(noderange):
sess = client.Command()
envstring=os.environ.get('NODECONSOLE_WINDOWED_COMMAND')