Skip to content

fix: mouse message API and improve public API surface#9

Merged
TimoKramer merged 3 commits into
mainfrom
fix/mouse-api
Apr 8, 2026
Merged

fix: mouse message API and improve public API surface#9
TimoKramer merged 3 commits into
mainfrom
fix/mouse-api

Conversation

@TimoKramer
Copy link
Copy Markdown
Owner

  • Fix mouse message conversion in program.clj: args were passed in wrong order and integer button codes were not converted to keywords
  • Add mouse predicates to charm.message (click?, left-click?, wheel-up?, etc.) so users don't need charm.input.mouse
  • Re-export width utilities (string-width, truncate, pad-right, pad-left, strip-ansi) from charm.style.core
  • Mark charm.input.mouse and charm.ansi.width as ^:no-doc (re-exported)
  • Add sketch example demonstrating mouse interaction

- Fix mouse message conversion in program.clj: args were passed in wrong
  order and integer button codes were not converted to keywords
- Add mouse predicates to charm.message (click?, left-click?, wheel-up?,
  etc.) so users don't need charm.input.mouse
- Re-export width utilities (string-width, truncate, pad-right, pad-left,
  strip-ansi) from charm.style.core
- Mark charm.input.mouse and charm.ansi.width as ^:no-doc (re-exported)
- Add sketch example demonstrating mouse interaction
@TimoKramer TimoKramer self-assigned this Apr 8, 2026
@TimoKramer TimoKramer merged commit 119c5ef into main Apr 8, 2026
2 checks passed
@TimoKramer TimoKramer deleted the fix/mouse-api branch April 8, 2026 16:42
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