Ayman Bagabas
a154847611
feat: extended Coordinates mouse reporting & additional buttons support ( #594 )
...
* feat(mouse): add extended mouse & shift key support
Support SGR(1006) mouse mode
Support parsing shift key press
Support additional mouse buttons
Report which button was released
Report button motion
* fix: key.go sgr len missing calculation (#841 )
* chore(test): add sgr mouse msg detect test
---------
Co-authored-by: robinsamuel <96998379+robin-samuel@users.noreply.github.com>
2023-12-04 11:50:59 -05:00
Maas Lalani
bf2ffaf840
chore: remove examples/mouse/README.md
2023-08-28 10:07:18 -04:00
Christian Muehlhaeuser
6b77c8fc10
chore: rename StartReturningModel to Run
...
Added aliases for the old functions, but deprecated them.
2022-10-08 01:34:17 +02:00
Maas Lalani
d20732aaea
docs: add examples/gifs locally to repository
2022-10-03 15:07:28 -04:00
Maas Lalani
70576bc9e0
examples/README.md GIFs ( #470 )
...
* docs(examples): Add `examples/README.md`
Adds `examples/README.md` with GIFs of examples
* docs(examples): Individual READMEs
* docs(examples): add short description to each example
2022-10-03 12:06:18 -04:00
Christian Rocha
85ab476698
Add ProgramOptions for entering the altscreen and enabling the mouse
...
Because they run ansyncronously, the analogous commands, when run in
a Model's Init() function, could fire after the renderer has starting
writing to output, rendering artifacts to the commandline.
2021-06-02 14:49:54 -04:00
Christian Rocha
5c150ebf38
Add cmds for toggling mouse mode + deprecate equivalent Program methods
...
Also automatically disable mouse mode on exit.
2021-05-05 18:11:56 -04:00
Christian Rocha
7c0bbc7d32
Clean up and normalize examples
2021-05-01 09:33:13 -04:00
SuperPaintman
892bebd617
Fix a mouse example
2020-11-03 20:19:53 -05:00
Christian Rocha
7530fb0112
Update mouse example to use new Model interface-based structure
2020-10-15 16:33:37 -04:00
Christian Rocha
51e97bb959
Add descriptions to example programs and bump deps in examples
2020-10-14 11:51:32 -04:00
Christian Rocha
d86cb562f0
Add basic mouse support
2020-06-22 20:41:26 -04:00