vty-unix-0.2.0.0: Unix backend for Vty
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.Platform.Unix.Input.Mouse

Description

This module provides parsers for mouse events for both "normal" and "extended" modes. This implementation was informed by

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking

This module is exposed for testing purposes only; applications should never need to import this directly.

Synopsis

Documentation

requestMouseEvents :: ByteString Source #

These sequences set xterm-based terminals to send mouse event sequences.

disableMouseEvents :: ByteString Source #

These sequences disable mouse events.

isMouseEvent :: ByteString -> Bool Source #

Does the specified string begin with a mouse event?

classifyMouseEvent :: ByteString -> KClass Source #

Attempt to classify an input string as a mouse event.