mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
f742676aee
Request and parse up mouse messages. We handle up to 11 mouse buttons, 3 modifiers (currently thrown away), motion while holding down a button, and loss/gain of focus. I've added twelve new NCKEYs: one for each button, and one for release. In addition, I've introduced the 'ncinput' struct, which encodes the nckey plus extra data. The only extra data thus far is coordinates for mouse events. It is not necessary to provide a ncinput to all input functions; NULL can be provided if the caller doesn't care about details. All demos are updated. notcurses-input has been updated to decode full information of returned ncinputs. The primary resource for this work was Dickey at al's "XTerm Control Sequences", https://invisible-island.net/xterm/ctlseqs/ctlseqs.html.
19 lines
448 B
YAML
19 lines
448 B
YAML
---
|
|
pipeline:
|
|
prep:
|
|
image: library/debian:unstable
|
|
docker:
|
|
tty: true
|
|
commands:
|
|
- apt-get update
|
|
- apt-get -y remove man-db
|
|
- apt-get -y install devscripts git-buildpackage locales
|
|
- echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
|
- locale-gen
|
|
- mk-build-deps --install -t'apt-get -y'
|
|
- mkdir build
|
|
- cd build
|
|
- cmake ..
|
|
- make
|
|
- LANG="en_US.UTF-8" ./notcurses-tester
|