Mouse Handling
You can subscribe to all mouse events:
eventLoop.mouseEvents().subscribe((MouseEvent event) -> {
// do something with mouse event
});
MouseEvent is a record containing X and Y coordinates and an integer bit mask
that encodes the event type, button, and modifiers.
MouseEvent.of(org.jline.terminal.MouseEvent) converts a JLine mouse event into this record.