-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bug on Kitty: Terminfo file not found #59
Comments
Thanks for the report. Hopefully all we need to do here is just warn or fallback to xterm if we can't resolve terminfo. |
This patch will hopefully address #59. Unfortunately, I wasn't able to write a test to reproduce the issue, so it is just a blind fix.
@thiswillbeyourgithub, I wasn't able to repro, but I wrote a blind patch that should hopefully work (#62). If you're up for it, I would appreciate it if you could try building that branch and seeing if it fixes the problem. After cloning the repo and checking out the branch, you can test out shpool by doing
then
in order to attach. This way you won't disturb any existing shpool daemon you have running. |
This patch will hopefully address #59. Unfortunately, I wasn't able to write a test to reproduce the issue, so it is just a blind fix.
Thanks a lot! I'll check in a couple of days max |
This patch will hopefully address #59. Unfortunately, I wasn't able to write a test to reproduce the issue, so it is just a blind fix.
Well actually I tested now and it seems to join fine BUT to my great surprise inside the shpool session the arrow keys and backspace are completely broken, they seam to repeat some strings instead of doing their original function. Nothing in my .zshrc has anything to do with that AFAIK |
We fall back to It might be worth capturing your shell output with and without shpool in the loop and then comparing the bytes to see if there is a difference in the control codes coming back to kitty. |
I can also try installing kitty rather than just messing with TERM in tests to repro. That may take a bit though since my normal computer is having some trouble. |
Unfortunately I know very little about how terminals work so it might be the best way forward :/ I'm very interested in shpool (as tmux can't work with kitty) but am holding off until the dust settles and the kitty issues are more well known. I recommend giving kitty a try! Especially the timecoded video the author made to showcase features: https://sw.kovidgoyal.net/kitty/ |
Update: I noticed today that when I do "sudo su" in a terminal, my session seems to have the same issue: pressing backspace seemed to be the spacebar and the arrow keys were funky. None of this is related to shpool, I'm talking about a kitty issue. So I found this kitty issue where the dev suggests adding this to visudo: So I tried again your patch and it seems to work fine now. AFAIC you can merge it. edit: had linked the wrong issue! |
This patch will hopefully address #59. Unfortunately, I wasn't able to write a test to reproduce the issue, so it is just a blind fix.
What happened
I can't create shpool sessions in kitty-terminal but I can with gnome-terminal.
Here's the output that appears in journalctl -f:
Here are relevant outputs in my kitty:
And on gnome-terminal:
So I tried this in kitty:
TERM="xterm-256color" shpool attach -f "test"
and it worked directly.What I expected to happen
First, this error should appear not only in journalctl but to the user that called it! I get no feedback that shpool failed except that
shpool list
shows an empty list.Then, the error is incorrect: it should not be "Terminfo" file not found (the file is found) but has to do with $TERM.
To Reproduce
Steps to reproduce the behavior:
TERM="xterm-kitty" shpool attach -f "test"
Version info
shpool 0.6.2
Logs
The text was updated successfully, but these errors were encountered: