Skip to content

nurses: set --enable-mixed-case=no#152

Merged
twitchyliquid64 merged 3 commits intomainfrom
tom/ncurses
May 6, 2026
Merged

nurses: set --enable-mixed-case=no#152
twitchyliquid64 merged 3 commits intomainfrom
tom/ncurses

Conversation

@twitchyliquid64
Copy link
Copy Markdown
Contributor

@twitchyliquid64 twitchyliquid64 commented May 5, 2026

Attempts to fix issues with terminfo not being found on OSX, due to APFS translation being case-insensitive.

Summary by CodeRabbit

  • Chores
    • Updated ncurses build configuration with improved terminal support handling.
    • Modified terminal information symlink paths for enhanced compatibility.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

📝 Walkthrough

Walkthrough

The PR updates the ncurses build script to disable mixed-case terminal names via a new configure flag and adjusts the post-install terminfo symlink to point from terminfo/78/xterm-ghostty to ../67/ghostty, removing the directory creation for the xterm variant.

Changes

ncurses Build Configuration

Layer / File(s) Summary
Build Configuration
packages/ncurses/build.sh
Configure flag --enable-mixed-case=no is added. Terminfo symlink is changed from terminfo/x/xterm-ghostty pointing to ../g/ghostty to terminfo/78/xterm-ghostty pointing to ../67/ghostty, and the mkdir step for terminfo/x is removed.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A ghostty symlink hops with glee,
From x to 78, wild and free!
Mixed cases now must take their rest,
Configuration tweaks—rabbit-approved best! 🐰

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title mentions setting --enable-mixed-case=no, which is the primary change in the PR, but contains a typo ('nurses' instead of 'ncurses'). It still clearly conveys the main modification being made to the ncurses build configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tom/ncurses

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/ncurses/build.sh (1)

2-2: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use required strict shell mode in build scripts.

Line 2 currently uses set -e only. Switch to full strict mode to catch unset variables and pipeline failures.

Suggested patch
- set -e
+ set -euo pipefail
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ncurses/build.sh` at line 2, Replace the loose shell option "set -e"
in the build script with strict shell mode by changing it to "set -euo pipefail"
and also set a safe IFS (e.g. IFS=$'\n\t') near the top of the script (where the
current "set -e" appears) so unset variables and pipeline failures are caught
and word-splitting is safer during the build.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@packages/ncurses/build.sh`:
- Line 2: Replace the loose shell option "set -e" in the build script with
strict shell mode by changing it to "set -euo pipefail" and also set a safe IFS
(e.g. IFS=$'\n\t') near the top of the script (where the current "set -e"
appears) so unset variables and pipeline failures are caught and word-splitting
is safer during the build.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4697bb9e-9e0f-4a86-8495-27191e8ac297

📥 Commits

Reviewing files that changed from the base of the PR and between 3c145f2 and dffdfd0.

📒 Files selected for processing (1)
  • packages/ncurses/build.sh

@twitchyliquid64 twitchyliquid64 enabled auto-merge May 5, 2026 22:45
@twitchyliquid64 twitchyliquid64 added this pull request to the merge queue May 6, 2026
Merged via the queue into main with commit fbad6c8 May 6, 2026
3 checks passed
@twitchyliquid64 twitchyliquid64 deleted the tom/ncurses branch May 6, 2026 19:02
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.

2 participants