ocaml / ocaml/dune

Add mouse movement events for tui

Open
#8,620 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tui
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

In the following PR:

There is support for mouse movement events. This could be useful since we could get the UI to be reactive to mouse movements. I'm thinking buttons, scrollbars and tabs can react to being hovered over.

This would help with some issues that TUI currently has. For example, on some terminal emulators, the location of the mouse can be offset slightly causing difficulty when clicking buttons. If we had a visual indicator that a button can be pressed it will make for a much nicer user experience.

I'm opening this issue as a reminder for such an avenue of exploration.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the mouse movement support described in the referenced PR #46 and locating the TUI event-handling entry points. No files or tests are named, and the issue presents this as an avenue of exploration; done would require an agreed scope for mouse movement events and a corresponding implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.