Skip to content

feat: add terminal theme auto-detection#58

Open
lukaszcz wants to merge 7 commits intoSkardyy:mainfrom
lukaszcz:theme-autodetect
Open

feat: add terminal theme auto-detection#58
lukaszcz wants to merge 7 commits intoSkardyy:mainfrom
lukaszcz:theme-autodetect

Conversation

@lukaszcz
Copy link

@lukaszcz lukaszcz commented Mar 3, 2026

Auto-detect the terminal background to set the default theme automatically (only when stdout is a TTY). Light terminals use makurai_light; dark terminals keep the current default; --theme and MCAT_THEME still win.

  • New Features

    • Detect terminal background with termbg (100ms timeout, TTY-only).
    • Apply makurai_light only when no theme is set by args/env.
    • Keep existing default on dark terminals.
    • Update CLI help to say “default: auto-detected”.
  • Dependencies

    • Add termbg 0.6.2.

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