Is there any way can let me do things like bind-key b send-keys "stty cols #{pane_width} rows #{pane_height}"
- I use TMUX.
- I often need to use ssh to login to CentOS servers which has no
resizecommand. - I cannot install command in those servers.
- The server's stty cannot auto resize when I resize the pane of tmux or the window of terminal.
I am now using a complicated way to accomplish this.
I write a display commend in my .tmux.conf, bind-key b display -p "stty cols #{pane_width} rows #{pane_height}".
Then I can copy the display-message and paste it to the command line of ssh-server.
You can get the variables interpolated using
run-shell, eg: