Skip to content

Support terminfo files larger than 4K - #33

Merged
jamessan merged 3 commits into
neovim:masterfrom
jamessan:bigger-terminfo-files
Jun 30, 2026
Merged

jamessan merged 3 commits into
neovim:masterfrom
jamessan:bigger-terminfo-files

Conversation

@jamessan

Copy link
Copy Markdown
Member

Malloc, rather than stack allocate, the buffer in the unibi_from_fd & unibi_from_fp convenience functions so we can increase the buffer to ncurses' current max of 32K.

Update the generated tests based on ncurses 6.6+20260608, which includes terminfo files larger than 4K (notably xterm and xterm-256color).

@jamessan jamessan linked an issue Jun 30, 2026 that may be closed by this pull request
@jamessan
jamessan force-pushed the bigger-terminfo-files branch from c50891c to bf36fd8 Compare June 30, 2026 10:53
jamessan added 3 commits June 30, 2026 08:41
Ncurses supports terminfo files up to 32K in size currently. Rather than
creating 32K buffers on the stack, dynamically allocate the memory.
@jamessan
jamessan force-pushed the bigger-terminfo-files branch from bf36fd8 to d7cb8aa Compare June 30, 2026 12:41
@jamessan
jamessan merged commit f12b4fa into neovim:master Jun 30, 2026
1 check passed
@jamessan
jamessan deleted the bigger-terminfo-files branch June 30, 2026 12:42
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
unibilium 2.1.4

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Change terminfo search logic closer to ncurses by @f380cedric in neovim/unibilium#31
* Add minimal GH CI by @jamessan in neovim/unibilium#34
* Support terminfo files larger than 4K by @jamessan in neovim/unibilium#33
* release v2.1.3 by @clason in neovim/unibilium#35
* Flesh out CMake support by @jamessan in neovim/unibilium#37
* feat(build): add initial build.zig by @clason in neovim/unibilium#38
* cmake: Add options to control building of docs, tools, and tests by @jamessan in neovim/unibilium#41
* release v2.1.4 by @clason in neovim/unibilium#40

## New Contributors
* @f380cedric made their first contribution in neovim/unibilium#31
* @jamessan made their first contribution in neovim/unibilium#34
* @clason made their first contribution in neovim/unibilium#35

**Full Changelog**: https://github.com/neovim/unibilium/compare/v2.1.2...v2.1.4</pre>
  <p>View the full release notes at <a href="https://github.com/neovim/unibilium/releases/tag/v2.1.4">https://github.com/neovim/unibilium/releases/tag/v2.1.4</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!18139
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.

unibi_from_fd/fp do not handle files larger than 4096 bytes

2 participants