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

Inheriting TERM variable leads to broken terminal #25

Open
mpickering opened this issue Feb 2, 2021 · 4 comments
Open

Inheriting TERM variable leads to broken terminal #25

mpickering opened this issue Feb 2, 2021 · 4 comments

Comments

@mpickering
Copy link

nixos-shell will inherit the TERM variable from the user environment which leads to a broken terminal in some situations.

For example, I have TERM=rxvt-unicode-256color, which is inherited and leads to a broken terminal. Probably because rxvt_unicode is not in the system packages?

@Mic92
Copy link
Owner

Mic92 commented Feb 2, 2021

Does inheriting $TERMINFO_DIRS fix this issue?

@mpickering
Copy link
Author

No, it's still broken inheriting that variable.

@Mic92
Copy link
Owner

Mic92 commented Feb 3, 2021

I have:

echo $TERMINFO_DIRS
/home/joerg/.nix-profile/share/terminfo

I assume it has your system profile in there? So maybe something like TERMINFO_DIRS=$(realpath $TERMINFO_DIRS) could fix it.

@Mic92
Copy link
Owner

Mic92 commented Aug 14, 2024

One would need to add all terminals to environment.systemPackages to fix this properly.

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

2 participants