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
coreyoconnor
c62382227f
updating version to 4.6.0.2
...
Ignore-this: 8a7183e05af9ecf908b7ac897265bd17
darcs-hash:20101211233244-f0a0d-0b1aa597885c76dcf6d46baa8e6c90c3734ad926.gz
2010-12-11 15:32:44 -08:00
Michael Steele
ec462dd9e9
bug fix: last_pic_ref left undefined
...
Ignore-this: 6c345adc649861c6ba644c45bdd2068f
darcs-hash:20101130190102-3f730-01c28263eb9ead934eddcc1021540c37edcb146e.gz
2010-11-30 11:01:02 -08:00
coreyoconnor
a4373ec5d4
up version to 4.6.0.1
...
Ignore-this: f4f1a58e01b23d78d3b406b61dc8d942
darcs-hash:20101116015015-f0a0d-53cb96054091b0648129c0180b1e300f5f9bdb88.gz
2010-11-15 17:50:15 -08:00
coreyoconnor
1ceab7e817
correcting extra source files
...
Ignore-this: 97e26249461059fce0e94dea6995a834
darcs-hash:20101116014933-f0a0d-d022ff2abb34e872741ebecfb279d651abfbdcaf.gz
2010-11-15 17:49:33 -08:00
coreyoconnor
af8dbc3437
up version number to 4.6.0.0 for release
...
Ignore-this: ec4942ecbcbffcb7e68165fff13ff285
darcs-hash:20101116014719-f0a0d-d60c770dc5272365e91ef2b0a2f802ae3382e331.gz
2010-11-15 17:47:19 -08:00
coreyoconnor
be7873545e
relax parallel dependency. allow 2.2 -> 3.2
...
Ignore-this: e9d1e120c62b8d386834b984541ed437
darcs-hash:20101111191724-f0a0d-28de7ae6fd1b050eea8ea08402cf1c166e1c5d69.gz
2010-11-11 11:17:24 -08:00
coreyoconnor
a4b0170e37
relax mtl dependency. Allow mtl < 2.1
...
Ignore-this: 5f16873d4078c0af8a3a59d99a56f8ae
darcs-hash:20101111191220-f0a0d-a630c5ab5be20bcfab84485dc533b255e2ad609d.gz
2010-11-11 11:12:20 -08:00
coreyoconnor
4e956571eb
remove stdout_output_buffer. Not used anymore
...
Ignore-this: 14dfb4c96aaf726b6c0794846d9a04aa
darcs-hash:20101111191217-f0a0d-e9e1046c7af4804b0d18516157566b6a26ec5c3d.gz
2010-11-11 11:12:17 -08:00
coreyoconnor
9ee7d784ff
update for GHC 7
...
Ignore-this: 71a8e277cf261934c1f0d25337ba9f03
darcs-hash:20101013001131-f0a0d-e4b5888da6009714d608a31180e832d228537713.gz
2010-10-12 17:11:31 -07:00
coreyoconnor
43b9e06ced
up version to 4.5.0.0
...
Ignore-this: 2de81bb88b51ecdde9031c3b9160d63
darcs-hash:20101012234749-f0a0d-17e8a0c4466e9e6723fd51dceeb302aa0179f0a6.gz
2010-10-12 16:47:49 -07:00
coreyoconnor
8e9ad8ed32
up version to 4.4.0.0
...
Ignore-this: d07a8b0789e76963209eed0007ce8c23
darcs-hash:20100907192222-f0a0d-fba5aa2ae5293016f09e4aec8cc53815ab1a798e.gz
2010-09-07 12:22:22 -07:00
coreyoconnor
8cbc302d9f
cleanup warnings
...
Ignore-this: c9fd514e958bdf13a966b8a5a51d5129
darcs-hash:20100907181459-f0a0d-d36ce4f3e290f5af86a6aa1b0345e3dd6462722d.gz
2010-09-07 11:14:59 -07:00
coreyoconnor
454287da9d
-
...
Ignore-this: ed1689fd1187384dffb8225d4eaeaa50
darcs-hash:20100907181236-f0a0d-4027e4433bf0e5d82fde28a8f4cb404e0dfccaaf.gz
2010-09-07 11:12:36 -07:00
coreyoconnor
d5c51d264f
Use GHC Handles instead of POSIX Fds for output
...
Ignore-this: bc16788a651ce4c7b5229b80e6cefe83
darcs-hash:20100907180247-f0a0d-05cdfbb6ae1d7b976a7bd75b4265d5596e659163.gz
2010-09-07 11:02:47 -07:00
coreyoconnor
fddf5c977a
remove use of put_string in interactive_terminal_test
...
Ignore-this: 437fabe080cf23c005b11eb1d09f974e
darcs-hash:20100907050742-f0a0d-3a331931909c1170fafa389cf71b27e6215c9eee.gz
2010-09-06 22:07:42 -07:00
coreyoconnor
dbcbe58815
making sure the test source included is complete
...
Ignore-this: 4514b2ed5b4c6b47753245a18a64af3a
darcs-hash:20100907045958-f0a0d-e0f67a099ea3628d5f515c126c756a2cccfcb7a8.gz
2010-09-06 21:59:58 -07:00
coreyoconnor
c0faeca09a
more documentation updates
...
Ignore-this: d43cbeedd6c1d2cad49b693ec8e92767
darcs-hash:20100907045642-f0a0d-d65dc6321ab47fb92e2d89f9e385234b1a45071b.gz
2010-09-06 21:56:42 -07:00
coreyoconnor
a3f57da8c6
doc use of escape delay parameter
...
Ignore-this: 4b3243591f966abf790f59354daa0998
darcs-hash:20100907042426-f0a0d-bbc040b27b9357fb35df35a3ff629b9e417622cb.gz
2010-09-06 21:24:26 -07:00
coreyoconnor
b3ee829e49
Copyright update
...
Ignore-this: 1c5981cbbb1f96221713af0858aec4c1
darcs-hash:20100907000707-f0a0d-50a46534037e197d99f6068f6fd4d86932ba372a.gz
2010-09-06 17:07:07 -07:00
coreyoconnor
033acfa8b1
cleanup a lot of warnings
...
Ignore-this: 2dc83fbcd2f197098d4c2e43a1411307
darcs-hash:20100905183826-f0a0d-a406de32e9bca359d303a6c67ffa2b32b09eceb1.gz
2010-09-05 11:38:26 -07:00