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

Update "FAQ: Keys such as arrow keys, backspace, delete, home/end, etc. do not work when using su or sudo?" #1397

lebensterben opened this Issue Feb 20, 2019 · 0 comments


None yet
2 participants
Copy link

commented Feb 20, 2019

This entry in the FAQ could be improved. The current solution is to add ENV option when running sudo. There's an alternative why to let sudo command permanently keep the correct TERMINFO.

Based on the trick provided here, one can edit the /etc/sudoers.d/visudo file by executing this shell command:

sudo visudo

Then add the following content:

Defaults env_keep += "TERM TERMINFO"

Save the file and from now on sudo can correctly identify xterm-kitty. This is tested on Clear Linux (27910). #1398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.