zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.59k stars 614 forks source link

`stty size` not passed to ssh #1558

Open Zykino opened 2 years ago

Zykino commented 2 years ago

In Case of Graphical or Performance Issues I am not sure it is a graphical issue. Tell me if you want me to bring the logs.

Basic information

zellij --version: zellij 0.30. stty size: See below uname -av or ver(Windows):

List of programs you interact with as, PROGRAM --version: output cropped meaningful, for example: windows terminal: 1.13.11431.0 fish --version: fish, version 3.0.2 On target: bash --version: GNU bash, version 5.0.3(1)-release (arm-unknown-linux-gnueabihf)

Further information 1) On fish start Zellij (auto-start a bit buggy on this old release of fish). With the following default layout:

➤ cat ~/.config/zellij/layouts/default.yam
---
template:
  direction: Horizontal
  parts:
    - direction: Vertical
      borderless: true
      split_size:
        Fixed: 1
      run:
        plugin:
          location: "zellij:tab-bar"
    - direction: Vertical
      body: true
    - direction: Vertical
      borderless: true
      split_size:
        Fixed: 2
      run:
        plugin:
          location: "zellij:status-bar"
tabs:
  - direction: Vertical
    name: "Local"
    focus: true
  - direction: Vertical
    name: "Target"
    parts:
      - direction: Horizontal
      - direction: Horizontal
        focus: true

2) On the "Target" tab, right pane, ssh to a target. (Just navigate, no new pane, resizing or whatever). => ls of a lot of files or going up last command and modifying after a wrap behave strangely.

stty size Outside of Zellij: 41 158 Local tab: 36 156 Target tab local pane: 36 77 Target tab ssh pane: 36 160

It appears only when connecting to a remote (before/after connection both pane are in sync for their stty sizes). While connected, if I resize the whole window (window terminal) it fixes itself. Same if I Ctrl + n, left, right. But disconnecting then reconnecting bring back the wrong 160 col size.

In fact even outside of split screen I see that the remote is always the same size even if it should be the same as before connecting. (But 156 and 160 are big and close enough to not see at first glance.)

image

Zykino commented 2 years ago

Kind of get a similar problem on pop-os with auto-tiled windows and zellij’s auto-start in fish. Should I create an other issue?

alacritty --version: alacritty 0.10.1-rc1 fish --version: fish, version 3.3.1 uname -av: Linux zykino-pop-os 5.17.15-76051715-generic #202206141358~1655919116~22.04~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux

Moved left window (stty size: 38 93) and just created right one (stty size: 21 78) on the screenshot.

image

Able to re-create with the default terminal too. But I think there is one resize more (or slower than alacritty) so not as consistent. gnome-terminal --version: # GNOME Terminal 3.44.0 using VTE 0.68.0 +BIDI +GNUTLS +ICU +SYSTEMD

a-kenji commented 2 years ago

Kind of get a similar problem on pop-os with auto-tiled windows and zellij’s auto-start in fish. Should I create an other issue?

Thanks for reaching out! No, but you could add information to #741.