dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
358 stars 6 forks source link

Can't still stick the bottom of `Alacritty` when drag the `Alacritty` to scale #47

Closed TheKissOfDragon closed 3 months ago

TheKissOfDragon commented 3 months ago

Can'tstill stick the bottom of Alacritty when dragging the Alacritty to scaling

To Reproduce Steps to reproduce the behavior:

  1. dragging the Alacritty to scaling
  2. zjstatus can't still stick the bottom of Alacritty

Expected behavior when dragging the Alacritty to scaling, zjstatus can't still stick the bottom of Alacritty

Screenshots as the screenshot shown below:

image

Desktop (please complete the following information):

dj95 commented 3 months ago

Hi,

thanks for your bug report. Zjstatus is not handling its position itself. This is handled by the layout processing of zellij. I've tested the behaviour in Alacritty on my MBP, but cannot reproduce the issue. Therefore I would suggest to first check the config, the layout and setting the TERM environment variables correctly, since this could lead to such rendering issues.

If this does not help, I'd kindly ask you to open an issue with your layout, the alacritty version and a reference to this issue on zellijs side, since I unfortunately cannot do something in order to fix it.

https://github.com/dj95/zjstatus/assets/4348959/6682e9df-660c-43d3-ba13-f17973f791fd

TheKissOfDragon commented 3 months ago

OK, Thanks for your response so quickly. So you mean that to layout rendered incorrectly caused this issue? you mentioned that if set setting the TERM environment variables correctly, the issue will occur, how to set TERM environment variables, could you give me a sample when you are free? Thanks a lot

dj95 commented 3 months ago

Can you please post your layout?

With the TERM var, you could check how it is set with echo $TERM. For alacritty, outside of zellij it should be set to alacritty-direct and in zellij to xterm-256color. At least this is how it is configured on my side for the demo video.

To set these variables, you need to configure them as environment variables in each of your programs.

This is for alacritty for your config file:

[env]
TERM = "alacritty-direct"

This for zellij for the config file:

env {
    TERM "xterm-256color"
}

Feel free to try it. Hopefully it will resolve the issue.

TheKissOfDragon commented 3 months ago

Thanks a lot. I did what you suggested. There is some improvement.

dj95 commented 3 months ago

Is the issue fixed right now?

TheKissOfDragon commented 3 months ago

Yes, I will close this issue. Thanks so much!

TheKissOfDragon commented 3 months ago

@dj95 Thanks for your great support