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

OSC 52 events doesn't be forward when the contents is more than or equal to 1024 bytes #1709

Closed
uesyn opened this issue Sep 2, 2022 · 0 comments · Fixed by #1711
Closed

Comments

@uesyn
Copy link

uesyn commented Sep 2, 2022

#1644 introduced OSC 52 events forwarding.
This is awesome feature.
However, it doesn't forward OSC 52 event whose contents is more than or equal to 1024 bytes.
I checked MacOS with wezterm and iTerm2, I also checked WSL2 with Windows Terminal.
This works correctly without zellij.

Basic information

zellij --version: zellij 0.31.3
uname -av or ver(Windows):

  • Linux DESKTOP-T4AQTJ6 4.4.0-22000-Microsoft #653-Microsoft Wed Apr 27 16:06:00 PST 2022 x86_64 GNU/Linux
  • Darwin Z-MAC-C-035 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64 i386 Darwin

Windows Terminal(Preview): 1.15.2283.0
wezterm: 20220807-113146-c2fee766

Further information

Reproduction steps:

# These works correctly.
$ payload="$(for i in $(seq 1 765); do echo -n a; done | base64 -w0)" && printf "\e]52;c;%s\a" $payload
$ payload="$(for i in $(seq 1 255); do echo -n あ; done | base64 -w0)" && printf "\e]52;c;%s\a" $payload

# These doesn't works.
$ payload="$(for i in $(seq 1 766); do echo -n a; done | base64 -w0)" && printf "\e]52;c;%s\a" $payload
$ payload="$(for i in $(seq 1 256); do echo -n あ; done | base64 -w0)" && printf "\e]52;c;%s\a" $payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant