問題タブ [stty]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
resize - tmux send-keys コマンドで内部変数を使用するには?
私に次のようなことをさせる方法はありますかbind-key b send-keys "stty cols #{pane_width} rows #{pane_height}"
- 私はTMUXを使用しています。
- コマンドのないCentOSサーバーにログインするには、sshを使用する必要がよくあります
resize。 - これらのサーバーにコマンドをインストールできません。
- tmux のペインまたはターミナルのウィンドウのサイズを変更すると、サーバーの stty は自動サイズ変更できません。
私は今、これを達成するために複雑な方法を使用しています。
、にdisplayコメントを書きます。.tmux.confbind-key b display -p "stty cols #{pane_width} rows #{pane_height}"
次に、コピーしてdisplay-messagessh-server のコマンド ラインに貼り付けます。