Commit Graph

517 Commits

Author SHA1 Message Date
Jonathan Daugherty
6ffd2411c7 README: mention bracketed paste mode 2016-06-25 13:32:28 -07:00
Jonathan Daugherty
597decef73 Merge branch 'master' of github.com:coreyoconnor/vty into feature/bracketed-paste-mode 2016-06-25 13:30:18 -07:00
Jonathan Daugherty
1144dbf36b Bump version, update CHANGELOG 2016-06-25 13:29:38 -07:00
Jonathan Daugherty
6e591693b8 Merge pull request #97 from jtdaugherty/feature/bracketed-paste-mode
Add support for bracketed paste mode in XtermColor-driven terminals (fixes #50)
2016-06-25 13:24:56 -07:00
Jonathan Daugherty
f2a47446e4 Move bracketed paste functionality to Graphics.Vty.Input.Paste 2016-06-25 13:24:07 -07:00
Jonathan Daugherty
405ca96eae Merge mouse support 2016-06-25 13:15:41 -07:00
Jonathan Daugherty
b74a8b86f1 Merge pull request #98 from jtdaugherty/feature/mouse-events
Add support for "normal" and "extended" mouse modes for XtermColor
2016-06-25 13:13:36 -07:00
Jonathan Daugherty
564dcbb496 Output: update outputForConfig docstring 2016-06-24 17:06:49 -07:00
Jonathan Daugherty
06622a5093 Mouse: slight Haddock improvements 2016-06-24 16:58:49 -07:00
Jonathan Daugherty
19be5be584 Mouse: factor control sequence parser out into its own module 2016-06-24 16:54:45 -07:00
Jonathan Daugherty
64257de446 README: mention mouse support 2016-06-24 16:47:19 -07:00
Jonathan Daugherty
0c469213a2 Events: remove stale comment about mouse events not being supported 2016-06-24 16:45:44 -07:00
Jonathan Daugherty
742e74794c Mouse: improve Mouse module documentation slightly 2016-06-24 16:45:20 -07:00
Jonathan Daugherty
bf57754328 Classify: document Types module 2016-06-24 16:44:06 -07:00
Jonathan Daugherty
9ce0dca016 Events: document mouse events and update docstrings for other event constructors 2016-06-24 16:41:52 -07:00
Jonathan Daugherty
f68bb32de5 Add support for bracketed paste mode in XtermColor-driven terminals (fixes #50)
For details, see http://cirw.in/blog/bracketed-paste

This change adds a new Event constructor,

  EvPaste String

to deliver the contents of a paste to the application.  The constructor
provides a String instead of Text as originally suggested because I
wanted to punt on encoding issues and let the application deal with
that.

This change has been tested under tmux, Terminal.app, and iTerm2. A
development build of GNU screen also supports this paste mode (provided
you set TERM to "xterm" to force Vty to use the XtermColor driver for
screen). The mode has apparently been supported for a few years, but
I couldn't get the latest stable build in Homebrew (4.03.01) to work
in this mode so my only testing with GNU Screen was with git HEAD
(8d677e73).  It's possible the original patch didn't actually work but
interim refactorings fixed it.
2016-06-19 14:32:31 -07:00
Jonathan Daugherty
ac1374d400 Mouse: minor layout nit 2016-06-17 17:44:11 -07:00
Jonathan Daugherty
aa67b6faa8 Mouse: make screen, tmux, and xterm behavior uniform (only request motion events while a button is pressed) 2016-06-17 17:37:00 -07:00
Jonathan Daugherty
ff9f4e661d Mouse: also request motion events while buttons are pressed 2016-06-17 17:31:03 -07:00
Jonathan Daugherty
0508f83ee6 Mouse: fail event parsing when the mouse event header does not match 2016-06-17 17:30:45 -07:00
Jonathan Daugherty
d51d9bd517 Mouse: clean up top-level mouse event classification, create single parser 2016-06-17 17:08:33 -07:00
Jonathan Daugherty
82432db1e3 Mouse: support Normal mode events in terminals with a "screen" terminal type 2016-06-17 16:46:00 -07:00
Jonathan Daugherty
e58c15291d XTermColor: disable SGR mouse events in terminal release 2016-06-17 12:41:18 -07:00
Jonathan Daugherty
7b075ce382 Add support for SGR (extended) mouse events for XTermColor terminals
- Moves the KClass type from Classify to a new module, Classify.Types,
  so we can avoid import cycles
- Adds a new module, Graphics.Vty.Input.Mouse, that provides functions
  to request SGR mouse events and parse them
- Modifies the previously dormant mouse event constructors to include
  information supplied by SGR mouse events
- Integrates the new SGR mouse event functionality into the XTermColor
  driver
2016-06-17 12:32:43 -07:00
Jonathan Daugherty
89b904fa18 Merge pull request #96 from SirBoonami/master
Added derived Read instances for Event, Button
2016-06-14 12:59:36 -07:00
Felix Hirn
1265d1d066 Added derived Show instances for Event, Button 2016-06-14 15:38:56 +02:00
Corey O'Connor
7848dee2d5 GHC 7.4.2 compile fails with "out of memory". Adding 7.4.2 to allowed failures until this issue can be tracked down. 2016-05-10 18:38:45 -07:00
Corey O'Connor
c4627063f1 Bump version to 5.5.1 for development 2016-05-10 18:33:44 -07:00
Corey O'Connor
6d36c7d69a Update CHANGELOG. Bump version to 5.5.0 2016-05-10 18:26:13 -07:00
Corey O'Connor
980e6c4999 Add stack.yml project definition 2016-05-10 18:25:35 -07:00
Jonathan Daugherty
08391a64c4 Merge remote-tracking branch 'origin/refactor/microlens-migration' 2016-04-29 11:30:13 -07:00
Corey O'Connor
5729ca6ffb Merge pull request #92 from ethercrow/master
Fix ghc version comparison in travis scripts
2016-04-17 10:46:21 -07:00
Dmitry Ivanov
0fbcf0a24c Fix ghc version comparison in travis scripts 2016-04-13 13:05:49 +06:00
Dmitry Ivanov
e42c5799e3 Add ghc-8.0.1 job to travis.yml 2016-04-13 12:24:14 +06:00
Jonathan Daugherty
50ae590733 Loop: add missing Monoid import 2016-04-12 22:47:48 -07:00
Jonathan Daugherty
0c9d54f960 Replace lens dependency with microlens packages 2016-04-12 22:37:36 -07:00
Jonathan Daugherty
e6c979e287 Merge pull request #91 from lspitzner/master
cabal file: add repository, missing modules, and LICENSE; remove stale -threaded option
2016-03-11 16:11:41 -08:00
Lennart Spitzner
7ca5927baa Fix .cabal files
- Add source repos
- Remove -threaded for library (in accordance with
  cabal check recommendation)
- Copy LICENSE to test package (Fix cabal check error)
- Add proper other-modules to test executables (Fixes #88)
2016-03-12 00:56:20 +01:00
Corey O'Connor
6c3974639f Up version to 5.4.1 for development. 2015-08-14 18:15:59 -07:00
Corey O'Connor
6e58a29ee7 Add upper bound to base dependency in vty-examples 2015-08-14 18:12:16 -07:00
Corey O'Connor
10e9b8397f Update CHANGELOG. Bump version to 5.4.0. 2015-08-11 22:56:34 -07:00
Jonathan Daugherty
04ac36ca76 Use STM chans to avoid deprecated interface (fixes #60) 2015-08-11 22:35:20 -07:00
Jonathan Daugherty
60e8ce6535 Bump version and update CHANGELOG 2015-08-11 15:59:22 -07:00
Jonathan Daugherty
0270b9f23b Revert cabal file dependency on Cabal >= 1.20 2015-08-11 15:58:36 -07:00
Jonathan Daugherty
7dda3dd31b Bump version and update CHANGELOG 2015-08-11 15:22:55 -07:00
Jonathan Daugherty
3d40d13e27 Update QuickCheck dependency to 2.7 to support use of ioProperty (new in
2.7)

The previous commit claimed to do this but I mistakenly set the wrong
message; that commit upgraded the version of Cabal required to build the
library to fix a failing build like

https://travis-ci.org/coreyoconnor/vty/jobs/74851610
2015-08-09 19:29:17 -07:00
Jonathan Daugherty
027614c63d Update QuickCheck dependency to 2.7 to support use of ioProperty (new in 2.7) 2015-08-09 19:27:29 -07:00
Jonathan Daugherty
31dc43f636 Output: whitespace cleanup 2015-08-09 18:38:34 -07:00
Jonathan Daugherty
5097e7a071 Output: remove unused CPP extension 2015-08-09 18:37:07 -07:00
Jonathan Daugherty
677190b60b Output: remove conditional "mappend" import entirely since nothing uses it 2015-08-09 18:36:09 -07:00