I'm new to tmux
, and I'm having trouble finding a solution to resizing my actual terminal (I haven't learned quite enough about panes and windows yet).
I'm running tmux1.6, and bash
as my shell, on ubuntu12.04.
bash
has a builtin function resize
which seems to work outside of tmux just fine.
% resize -s 50 80
resizes the terminal to 80 characters wide and 50 lines tall. However, when I try to run this exact command inside a tmux pane, it hangs after I hit enter, until I hit any key, and then responds
"resize: unknown character, exiting"
which is a bit opaque to me. Now, I don't need to use the resize
function per se, but how can I, through a command (built in or scripted), physically resize the terminal that is displaying my tmux windows? The use case for this is that when I decide to open a new vertical pane, both of which contain code, I want my terminal to be an exact number of characters wide (2 panes = 161 characters, 80 for each and 1 for the dividing line, for example). Resizing with the mouse is not only tedious; my ubuntu doesn't display the width while I'm resizing.
Any help is appreciated, thanks!