Commit Graph

140 Commits

Author SHA1 Message Date
Mikolaj
eb390a87c1 Spurious whitespace cleanup in LLInput.hs 2012-03-02 19:31:24 +01:00
Corey O'Connor
53fae99eee up version to 4.7.0.10 for release 2012-02-03 11:30:57 -08:00
Corey O'Connor
c9aceef738 Merge pull request #21 from mgajda/master
Dependency patch makes it build with GHC-7.4.1
2012-02-03 11:19:47 -08:00
Michal J. Gajda
2dfe2c25f4 Now builds with GHC 7.4.1. 2012-02-03 07:36:20 +01:00
Corey O'Connor
ba5c62af25 up version to 4.7.0.8 for release 2012-01-12 10:44:35 -08:00
Ben Millwood
ff6ba5fa63 Relax dependencies on parallel and deepseq 2012-01-12 02:25:34 +00:00
Corey O'Connor
7b846fcf25 updating to version 4.7.0.6 for release. 2011-11-02 16:53:45 -07:00
Corey O'Connor
5405f9136c update test/Makefile 2011-11-02 16:53:21 -07:00
Corey O'Connor
b252930bc0 remove data type context usage. Use GADTs. 2011-11-02 16:53:08 -07:00
Corey O'Connor
caf9656934 Merge pull request #17 from jpnp/master
Fix for problem with crop
2011-08-29 22:45:07 -07:00
Corey O'Connor
da635bb377 Merge pull request #16 from Mikolaj/master
A possible fix for segfault possibly caused by vty
2011-08-29 22:41:11 -07:00
John Pybus
e072b19be1 Fix multiple ellipses on cropped text spans. 2011-08-18 12:31:32 +01:00
John Pybus
c0b4ce8957 Attempt to fix problem with Image crop 2011-08-18 00:35:52 +01:00
Mikolaj
18fe87aa96 attempt to fix a segfault possibly due to not NUL terminated strings
The strings used in withCWStringLen are (despite the incorrect comment)
supposed to come equipped with length, but no NUL at the end
(in particular nothing is allocated for an empty string).
Fortunately, here the length suffices.

See http://hackage.haskell.org/trac/ghc/ticket/5396
and https://github.com/coreyoconnor/vty/issues/14#issuecomment-1813397
2011-08-16 21:57:29 +02:00
Corey O'Connor
a2cdd077a9 up version to 7.4.0.4 for release 2011-07-17 22:14:18 -07:00
Corey O'Connor
4a325a8a2c nevermind. ghc-prim is still required. 2011-07-17 22:06:16 -07:00
Corey O'Connor
9f6a79b3f7 optimize the compiled C 2011-07-15 00:36:22 -07:00
Corey O'Connor
e5e23c05dd remove ghc-prim from dependencies 2011-07-14 23:45:26 -07:00
Corey O'Connor
f224ab18b2 I'm reasonably sure we can use unsafeWrite O_O 2011-07-14 23:40:45 -07:00
Corey O'Connor
cc969d903f Add test target "core" to easily view the ghc-core. 2011-07-14 23:40:14 -07:00
Corey O'Connor
4f3cd6c906 optimize span generation. Use string-qq for tests.
Recovers most of the performance lost with 4.7.0.0.
2011-07-14 18:23:02 -07:00
Corey O'Connor
a57c0b5360 Add Word Random instance for GHC < 7.1 2011-07-09 21:06:50 -07:00
Corey O'Connor
c62e5e1e4e add git ignore 2011-07-09 20:06:52 -07:00
Corey O'Connor
2585c2da31 increment version to 4.7.0.1 2011-07-04 00:20:49 -07:00
Corey O'Connor
05b27000d7 - 2011-07-04 00:04:04 -07:00
Corey O'Connor
e59ce7f39f Update Span 2011-07-03 23:26:57 -07:00
Corey O'Connor
30fd552a79 Pair image characters with display widths.
This way repeated calls to wcwidth are not required within the inner loops of generating spans.
2011-07-03 13:31:23 -07:00
Corey O'Connor
71cd98f595 Up version to 4.7.0.0. Tweak documentation. 2011-05-24 18:07:33 -07:00
Corey O'Connor
de65cb2758 Fixup HereDoc and Verify. 2011-05-19 13:03:46 -07:00
Corey O'Connor
88308c8dee Merge remote branch 'mathstuf/dev/integration'
Conflicts:
	src/Graphics/Vty/Image.hs
2011-05-19 12:20:19 -07:00
Corey O'Connor
12b75d1bb4 export wcwidth and wcswidth. 2011-05-13 12:00:16 -07:00
Corey O'Connor
2a600f7d5e Add BangPatterns as required by ghc 7.1 2011-05-13 11:00:56 -07:00
Ben Boeckel
a5235e4516 Merge branches 'dev/fix-translate' and 'dev/add-cropped-images' into dev/integration
* dev/fix-translate:
  Return the new number of columns to skip as well
  Fix indentation
  Return the number of rows to skip after rendering
  Clean up show instance for Translation
  Fix drawing to incorporate translation
  Proper image size of a translation

* dev/add-cropped-images:
  Modify dimensions when padding a padded image
  Just modify dimensions when cropping pads or crops
  Use Word instead of Int for the dimension type
  Add padded image ctor and related code
  Use the proper index for the height
  Improve show instance for ImageCrop
  Add operation for cropping an image to size

Conflicts:
	src/Graphics/Vty/Image.hs
	src/Graphics/Vty/Span.hs
2011-04-02 12:32:31 -04:00
Ben Boeckel
098273dcf6 Modify dimensions when padding a padded image 2011-04-02 12:20:13 -04:00
Ben Boeckel
74ee85377f Just modify dimensions when cropping pads or crops 2011-04-02 12:20:13 -04:00
Ben Boeckel
0cdd6f3d49 Use Word instead of Int for the dimension type 2011-04-02 12:20:13 -04:00
Ben Boeckel
4c218b7b5e Return the new number of columns to skip as well 2011-04-02 11:51:53 -04:00
Ben Boeckel
adfb3b35e7 Add padded image ctor and related code 2011-04-02 00:41:42 -04:00
Ben Boeckel
111e5ad4b3 Fix indentation 2011-04-02 00:30:22 -04:00
Ben Boeckel
eb3424ca16 Return the number of rows to skip after rendering
We need to keep track of the number of rows that a call skipped so that
in any future calls we can count that many lines as skipped.
2011-04-02 00:28:49 -04:00
Ben Boeckel
665255e2bd Clean up show instance for Translation 2011-04-02 00:27:18 -04:00
Ben Boeckel
a5d0a6b015 Use the proper index for the height 2011-04-02 00:21:44 -04:00
Ben Boeckel
ad661a02e0 Improve show instance for ImageCrop 2011-04-02 00:21:19 -04:00
Ben Boeckel
7bb84266b8 Fix drawing to incorporate translation
Not sure of the performance hits here. Also seems as though output_width
and char_width are not strictly necessary anymore since we calculate
them as we go along.

Also changed is that when a wide character gets split by a translate or
a region cutoff, the extra space is replaced with '…'. This is necessary
at least on the left to avoid jumps when the character appears when
scrolling. Not sure if this behavior is also wanted on the right. Is
there a "partial character" codepoint for when there isn't enough space
to display a full character?
2011-03-31 00:09:35 -04:00
Ben Boeckel
2cfe630a7b Proper image size of a translation
Negative translation moves the image "up" and "left", decreasing the
height and width. Vice versa for positive translation.
2011-03-31 00:06:16 -04:00
Ben Boeckel
9b5dd97a3f Add operation for cropping an image to size 2011-03-30 22:53:15 -04:00
Corey O'Connor
4fae8bf4f3 Up version to 4.6.0.6. Complete move to github.com 2011-03-16 15:16:28 -07:00
coreyoconnor
f4972d311e update version to 4.6.0.4 for release
Ignore-this: 30b956fde5d6f8f40e3d621675b969dc

darcs-hash:20110114002731-f0a0d-186dbd55d87ab021ecc7f61b6524393b3f6fea37.gz
2011-01-13 16:27:31 -08:00
coreyoconnor
4538410db3 update test/Makefile
Ignore-this: f65c93131406554766d6a0c14d2b0604

darcs-hash:20110114002720-f0a0d-dd344a5df33274cae65267242f3f4e84c4fe6909.gz
2011-01-13 16:27:20 -08:00
Lennart Kolmodin
ae06339529 Fix crash bug for ghc-7 when using -XHaskell98
Ignore-this: 6fd5c5060baac8ce37cf19720bd28304
The code uses monomorphic pattern bindings, but did not say so.
This patch adds MonoPatBinds to the affected source code file.
If using -XHaskell98 (that is, building with cabal instead of cabal-install)
the build would fail with a ghc crash.
For reference see: http://hackage.haskell.org/trac/ghc/ticket/4498

darcs-hash:20101222164140-fdf66-5b493e2b70205e7e4e4ae7f085fe29553eea9826.gz
2010-12-22 08:41:40 -08:00