Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.9 Scrolling inside tmux not working as it's used to be #183

Open
feryardiant opened this issue Apr 18, 2020 · 7 comments
Open

v0.9 Scrolling inside tmux not working as it's used to be #183

feryardiant opened this issue Apr 18, 2020 · 7 comments

Comments

@feryardiant
Copy link

feryardiant commented Apr 18, 2020

How to reproduce

  • enter tmux
  • make sure to enable mouse interaction setw -g mouse on in .tmux.conf
  • hit enter multiple times, or open any man pages
  • scroll using touchpad or mouse scroll wheel

Expected

The text on screen is scrolled as it should be in the previous versions

Actual

It's scrolling command history before actually scrolling text on screen


Tried to roll back to v0.3.13 everything's still works fine
Open any file using vim inside tmux, srolling still works fine
Tried compared to Windows Terminal

YuRBPhBYCL

@mskyaxl
Copy link
Owner

mskyaxl commented Apr 18, 2020

Thanks for the detailed report! I will have a look :)

@mskyaxl
Copy link
Owner

mskyaxl commented Apr 20, 2020

Hi @feryardiant,

I am not able to reproduce or I don't understand the issue completely.

Scroll on TMUX on 0 9 0

How do you start the wsl-terminal? with login?

@feryardiant
Copy link
Author

Hi @mskyaxl

Sorry for late reply, here's my wsl-terminal shortcut' property:

C:\tools\lib\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "C:\tools\lib\wsl-terminal\etc" -i "C:\tools\lib\wsl-terminal\open-wsl.exe"  -t "        " -e /bin/wslbridge2  -e SHELL="/usr/bin/zsh"

and yes I am on login shell

@feryardiant
Copy link
Author

Anyway, for some reasons it might be there's some issues with my dotfiles config but I still don't know. I'll do some investigate & let you know once I figured it out.

@mskyaxl
Copy link
Owner

mskyaxl commented Apr 22, 2020

Hi @mskyaxl

Sorry for late reply, here's my wsl-terminal shortcut' property:

C:\tools\lib\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "C:\tools\lib\wsl-terminal\etc" -i "C:\tools\lib\wsl-terminal\open-wsl.exe"  -t "        " -e /bin/wslbridge2  -e SHELL="/usr/bin/zsh"

and yes I am on login shell

if zsh is your shell .bashrc will not be sourced at startup

can you try to run <your path>\wsl-terminal\open-wsl.exe -l?

A good read about the order of the *rc files:
https://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/

@feryardiant
Copy link
Author

feryardiant commented Apr 23, 2020

if zsh is your shell .bashrc will not be sourced at startup

Yes, you're right and I have to admit that I don't really familiar in this regard, lol. But this answer helps me to verify

image

can you try to run <your path>\wsl-terminal\open-wsl.exe -l?

Tried this:

C:\tools\lib\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "C:\tools\lib\wsl-terminal\etc" -i "C:\tools\lib\wsl-terminal\open-wsl.exe -l"  -t "        " -e /bin/wslbridge2  -e SHELL="/usr/bin/zsh"

Result:
image

Tried this:

C:\tools\lib\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "C:\tools\lib\wsl-terminal\etc" -i "C:\tools\lib\wsl-terminal\open-wsl.exe" -t "        " -e /bin/wslbridge2  -e SHELL="/usr/bin/zsh" -l

I see wslbridge2-backend has --login flag but not the zsh

image

@mskyaxl
Copy link
Owner

mskyaxl commented Apr 25, 2020

C:\tools\lib\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "C:\tools\lib\wsl-terminal\etc" -i "C:\tools\lib\wsl-terminal\open-wsl.exe -l" -t " " -e /bin/wslbridge2 -e SHELL="/usr/bin/zsh"

this cannot work because -i argument for mintty is the selection of the icon, try please:
C:\tools\lib\wsl-terminal\bin\open-wsl.exe -l and that's all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants