-
Notifications
You must be signed in to change notification settings - Fork 25
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
TERMINFO env variable #36
Comments
Me also. I suggest the following patch to try other directories if nothing is found via diff --git i/uniutil.c w/uniutil.c
index 2e266a7..b9e672c 100644
--- i/uniutil.c
+++ w/uniutil.c
@@ -183,7 +183,10 @@ unibi_term *unibi_from_term(const char *term) {
}
if ((env = getenv("TERMINFO"))) {
- return from_dir(env, NULL, NULL, term);
+ ut = from_dir(env, NULL, NULL, term);
+ if (ut) {
+ return ut;
+ }
}
if ((env = getenv("HOME"))) { |
@mauke can you comment on this and the other pull requests? Or would you consider adding an additional maintainer? |
FWIW, I would be willing to help out. |
I can confirm that this patch works. This repo here seems to be unmaintained. cc @mauke |
I think at this point that's probably reasonable. mauke hasn't been seen around for a while now so doing something to continue maintaining it would make sense, and best to keep things in one place. I'd be happy to consider neovim's fork to be "next best thing" to official upstream, and continue work there. |
kitty e.g. sets `$TERMINFO` (at least when using the development version), but it only contains its own entry for xterm-kitty. When you start tmux then from there, tmux uses this `$TERMINFO` variable, and then Neovim would fail to parse `TERM=screen` properly (via `unibi_from_term`) then. Fixes mauke#36.
Ok. We have https://github.com/neovim/unibilium by now (added in February to https://github.com/neovim/neovim/wiki/Deps#forks by @justinmk). |
kitty e.g. sets `$TERMINFO` (at least when using the development version), but it only contains its own entry for xterm-kitty. When you start tmux then from there, tmux uses this `$TERMINFO` variable, and then Neovim would fail to parse `TERM=screen` properly (via `unibi_from_term`) then. Fixes mauke#36
The documentation for unibi_from_term() says
The curses doc says
i.e TERMINFO is a directory containing files which can override one terminal without blocking others. This incompatibility just bit me.
The text was updated successfully, but these errors were encountered: