{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/1118","repository_url":"https://api.github.com/repos/tmux/tmux","labels_url":"https://api.github.com/repos/tmux/tmux/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/1118/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/1118/events","html_url":"https://github.com/tmux/tmux/issues/1118","id":266077181,"number":1118,"title":"Pane size not updating while executing script.","user":{"login":"MasterTextman","id":17473983,"avatar_url":"https://avatars2.githubusercontent.com/u/17473983?v=4","gravatar_id":"","url":"https://api.github.com/users/MasterTextman","html_url":"https://github.com/MasterTextman","followers_url":"https://api.github.com/users/MasterTextman/followers","following_url":"https://api.github.com/users/MasterTextman/following{/other_user}","gists_url":"https://api.github.com/users/MasterTextman/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterTextman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterTextman/subscriptions","organizations_url":"https://api.github.com/users/MasterTextman/orgs","repos_url":"https://api.github.com/users/MasterTextman/repos","events_url":"https://api.github.com/users/MasterTextman/events{/privacy}","received_events_url":"https://api.github.com/users/MasterTextman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-17T10:43:48Z","updated_at":"2017-10-17T10:49:23Z","closed_at":null,"author_association":"NONE","body":"Linux x86_64\r\ntmux master\r\nrxvt-unicode\r\n\r\nI wrote a script that launched ncmpcpp in 3 different panes that were equal in horizontal size, and it glitched out. So, to try and figure out the problem, I wrote a different script:\r\n\r\n```\r\n#!/bin/sh\r\n\r\nprintf '\\033[8;29;252t'\r\n\r\ntmux new-session -d \r\n\r\ntmux select-layout even-horizontal\r\ntmux send-keys -t 0 'tput cols' Enter\r\ntmux split-window -h \r\n\r\ntmux select-layout even-horizontal\r\ntmux send-keys -t 1 'tput cols' Enter\r\ntmux split-window -h \r\n\r\ntmux select-layout even-horizontal\r\ntmux send-keys -t 2 'tput cols' Enter\r\n\r\ntmux send-keys -t 2 'tput cols' Enter\r\ntmux send-keys -t 1 'tput cols' Enter\r\ntmux send-keys -t 0 'tput cols' Enter\r\n\r\ntmux a #\r\n```\r\n\r\nWhat this script does, is ensure that the size at the start at the script is at a fixed size, 252x29, and then it starts a new session, in which 3 panes are opened and evened out.\r\n`tput cols` should show the amount of columns in each pane.\r\nI did them twice for each pane, one before I split the others, and one after. But in some weird fashion, they all came out the same.\r\n\r\nPane 1 said it had 40 columns, Pane 2 said it had 39, and Pane 3 said it had 19.\r\nAfter the script ran, I typed `tput cols` manually in each pane.\r\nPane 1 said it had 84 columns, Pane 2 said it had 83, and Pane 3 said it had 83.\r\n\r\nThere is a major difference between the script result and the manual result. Is there a way the size of each pane could be updated while the script is running?\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/337193402","html_url":"https://github.com/tmux/tmux/issues/1118#issuecomment-337193402","issue_url":"https://api.github.com/repos/tmux/tmux/issues/1118","id":337193402,"user":{"login":"nicm","id":304243,"avatar_url":"https://avatars1.githubusercontent.com/u/304243?v=4","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T10:49:23Z","updated_at":"2017-10-17T10:49:23Z","author_association":"CONTRIBUTOR","body":"You need to use -x and -y with new-session."}}
{"actor":{"display_login":"nicm"}}