Hi,

When a line's length exceeds the width of the terminal, tmux wraps the line so
that it displays as two lines. However, if the window is then resized, the line
remains cut at the same place.

For example, if I print the alphabet in a 20-columns window, I get something
like:
+--------------------+
|abcdefghijklmnopqrst|
|uvwxyz              |
|                    |
|                    |
+--------------------+

If I resize the window to 15 columns, I get:
+---------------+
|abcdefghijklmno|
|uvwxyz         |
|               |
|               |
+---------------+

If I then resize it to 25 columns, I get:
+-------------------------+
|abcdefghijklmnopqrst     |
|uvwxyz                   |
|                         |
|                         |
+-------------------------+

I would like to know if it's possible, and how, to get tmux to automatically
rewrap the lines to the width of the terminal, so that when I resize the window
like above, I get things like:

+---------------+
|abcdefghijklmno|
|pqrstuvwxyz    |
|               |
|               |
+---------------+

and

+-------------------------+
|abcdefghijklmnopqrstuvwxy|
|z                        |
|                         |
|                         |
+-------------------------+

After a quick look at the code, I think this is not supported by tmux. Am I
right? If I am, do you have any idea of workaround, or know how hard it would
be to implement in tmux?

(As a side note, several common applications do this line wrapping themselve:
for example visual applications like vim or irssi. However, applications that
do not handle wrapping the lines themselve become less usable when I have to
use them in environments with different window sizes. It also seems that
readline handles the wrapping, so just typing the alphabet on the command
prompt won't be sufficient to reproduce)

Thanks,
-- 
Noé Rubinstein

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to