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

Copy terminfo into MacOS app resources #6538

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ddeville
Copy link

@ddeville ddeville commented Jan 2, 2025

Currently the terminfo file has to be downloaded from the repo and installed manually. It'd be nice to include it in the app so that a package manager like Homebrew could install it in the right place when Wezterm is installed, which is something that Alacritty does.

I've chosen to include the compiled version so that package manager don't have to invoke tic and can just copy files around.

This will result in the following being added to the Resources folder:

WezTerm.app/Contents/Resources/terminfo/77/wezterm

Once this is in I'll send a patch to update the Homebrew formula and have it actually install the terminfo.

Currently the terminfo file has to be downloaded from the repo and
installed manually. It'd be nice to include it in the app so that a
package manager like Homebrew could install it in the right place when
Wezterm is installed, which is something that Alacritty does.

I've chosen to include the compiled version so that package manager
don't have to invoke `tic` and can just copy files around.

This will result in the following being added to the Resources folder:
```
WezTerm.app/Contents/Resources/terminfo/77/wezterm
```

Once this is in I'll send a patch to update the [Homebrew
formula](https://github.com/Homebrew/homebrew-cask/blob/master/Casks/w/wezterm.rb)
and have it actually install the terminfo.
ddeville added a commit to ddeville/homebrew-cask that referenced this pull request Jan 2, 2025
The compiled terminfo entry was added to the app bundle (see
wez/wezterm#6538) so install it in
`~/.terminfo`.
ddeville added a commit to ddeville/homebrew-cask that referenced this pull request Jan 2, 2025
The compiled terminfo entry was added to the app bundle (see
wez/wezterm#6538) so install it in
`~/.terminfo` on behalf of the user.
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

Successfully merging this pull request may close these issues.

1 participant