Skip to content

Add macOS support and dynamic border color detection#1

Open
tianpai wants to merge 1 commit into
Mitul-Joby:mainfrom
tianpai:macos-support-and-dynamic-border-color
Open

Add macOS support and dynamic border color detection#1
tianpai wants to merge 1 commit into
Mitul-Joby:mainfrom
tianpai:macos-support-and-dynamic-border-color

Conversation

@tianpai

@tianpai tianpai commented Oct 13, 2025

Copy link
Copy Markdown

Summary

  • Adds macOS platform support
  • Implements dynamic border color detection based on terminal background (white on dark, black on light)

Changes

  • Updated platform detection to include __APPLE__ macro
  • Added getBorderColor() function for Windows and Unix/macOS
  • Updated README with macOS badge and build instructions
  • Replaced magic numbers with COLOR_BLACK and COLOR_WHITE constants

Testing

Tested on macOS with both dark and light terminal themes.

- Add macOS platform detection
- Detect terminal background color and adjust border color accordingly
  - White border on dark backgrounds, black on light backgrounds
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