Commit Graph

2 Commits

Author SHA1 Message Date
Jonathan Daugherty
655dec00e7 ModeDemo: import Control.Applicative explicitly 2016-06-26 14:44:33 -07:00
Jonathan Daugherty
d4789578ed Make mouse and paste modes optional and reconfigurable
- Adds mouseMode and bracketedPasteMode fields to Config
- Config fields default to False
- Adds a Mode type for modal terminal features (mouse events, bracketed
  paste mode)
- The Output interface now has new fields:
  * supportsMode :: Mode -> Bool tells whether the device supports a
    mode
  * setMode :: Mode -> Bool -> IO () turns a mode on or off
  * getModeStatus :: Mode -> IO Bool tells you whether a mode is on or
    off
2016-06-26 12:14:36 -07:00