2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix pane splitting with large numbers of nodes

The tcons logic to select layout each iteration is now replicated,
to avoid too-small panes.
This commit is contained in:
Jarrod Johnson 2019-01-15 16:00:39 -05:00
parent 6588ac0990
commit 18713797b9

View File

@ -65,7 +65,7 @@ if options.tile:
['tmux', 'split', '-h',
'{0} -m 5 start /nodes/{1}/console/session'.format(
confettypath, node)])
subprocess.call(['tmux', 'select-layout', 'tiled'])
subprocess.call(['tmux', 'select-layout', 'tiled'])
subprocess.call(['tmux', 'select-pane', '-t', '0'])
os.execlp('tmux', 'tmux', 'attach', '-t', 'nodeconsole_{0}'.format(
os.getpid()))