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

Add support for kitty terminal: WARNING: terminal is not fully functional when run from snap image #316

Open
yonas opened this issue Jul 20, 2022 · 9 comments

Comments

@yonas
Copy link

yonas commented Jul 20, 2022

WARNING: terminal is not fully functional

Setting TERM=xterm-color makes this go away.

@MithicSpirit
Copy link

What is your TERM set to when the warning shows up?

@yonas
Copy link
Author

yonas commented Sep 7, 2022

@MithicSpirit It was set to xterm-kitty

@MithicSpirit
Copy link

I believe that the issue is that xterm-kitty is not your terminfo database. The correct TERM for kitty should just be kitty; please try running TERM=kitty procs to see if it works.

Also, this message is probably being emitted by less (the pager) itself, rather than procs. You can try running something like echo foobar | less to check whether that is the case.

@yonas
Copy link
Author

yonas commented Sep 8, 2022

@MithicSpirit

I believe that the issue is that xterm-kitty is not your terminfo database. The correct TERM for kitty should just be kitty; please try running TERM=kitty procs to see if it works.

Running TERM=kitty procs doesn't fix the issue.

I have /usr/share/terminfo/x/xterm-kitty installed with sha256 as dcc9cd047af252561521ed8e9e4879569987f626a316ddf008239ef3bf2d65d3.

Ubuntu 22.04.1 LTS
uname: Linux desktop 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Also, this message is probably being emitted by less (the pager) itself, rather than procs. You can try running something like echo foobar | less to check whether that is the case.

Running echo foobar | less doesn't produce any warnings.

@MithicSpirit
Copy link

Oh, you're on Ubuntu, are you perhaps using the procs as a snap (or any other form of containerization)?

@yonas
Copy link
Author

yonas commented Sep 9, 2022

@MithicSpirit Yes, I'm using procs v0.13.0 as a snap.

@MithicSpirit
Copy link

I think that the issue is that xterm-kitty does not exist in the terminfo database in the snap image.

@yonas yonas changed the title Add support for kitty terminal: WARNING: terminal is not fully functional Add support for kitty terminal: WARNING: terminal is not fully functional when run from snap image Sep 9, 2022
@yonas
Copy link
Author

yonas commented Sep 9, 2022

@MithicSpirit You're right. It works when building it via cargo install procs. Somehow the snap needs to be updated with term info or get terminfo from outside it's container (which could be counter-productive).

I don't know how snaps are created, so I'll have to leave this with you. Thanks!

@thisismygitrepo
Copy link

I faced similar problems with many other tools like ssh, image viewer etc.
It became evident to me that it was kitty to blame not the tools.
It was a long time since I dumped it and migrated to wezterm. None of this happen.

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

No branches or pull requests

3 participants