aaronjanse / 3mux

Terminal multiplexer inspired by i3
MIT License
1.82k stars 45 forks source link

Lines longer than the terminal width do not wrap #71

Closed scrosland closed 4 years ago

scrosland commented 4 years ago

I have iTerm as my terminal on a MacBook and ssh to a Debian linux server which has 3mux installed from the binary v1.0.1 release from github.

When in a 3mux session long lines do not wrap, and nor does 3mux appear to support horizontal scrolling.

This is what I see in bash in an 80 column terminal window outside 3mux for long output lines (I've inserted hard line breaks to show where the wrapping occurs):

user@host:~$ seq 1 1 100 | paste -s -d+
1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+21+22+23+24+25+26+27+28+29+30
+31+32+33+34+35+36+37+38+39+40+41+42+43+44+45+46+47+48+49+50+51+52+53+54+55+56+5
7+58+59+60+61+62+63+64+65+66+67+68+69+70+71+72+73+74+75+76+77+78+79+80+81+82+83+
84+85+86+87+88+89+90+91+92+93+94+95+96+97+98+99+100
user@host:~$ 

This is what happens in 3mux:

user@host:~$ 3mux new test
user@host:~$ <2> seq 1 1 100 | paste -s -d+
1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+21+22+23+24+25+26+27+28+29+30
user@host:~$ <2> 

This is what happens with long command lines. Outside 3mux:

user@host:~$ echo 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 
1 2

Inside 3mux:

0 1 2host:~$ <2> echo 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
aaronjanse commented 4 years ago

Ooh, nice catch. 3mux should be wrapping, as a terminal emulator typically would. I'll be busy this week, but I'll try to fix this soon.

Thank you for the bug report!