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
coreyoconnor
dd0b3f01fa
close the dupped terminal fd on release_terminal
...
Ignore-this: 17f737f325c59e43f6fc24c9f629fb65
darcs-hash:20100814002535-f0a0d-60758a32424ca7fe1f2ebbf76af2ba962de8533e.gz
2010-08-13 17:25:35 -07:00
coreyoconnor
dbc218c7ea
hm. remove the hFlush from output_byte_buffer.
...
Ignore-this: 6b564f9e1156eb98f43a594658a700ff
darcs-hash:20100812200035-f0a0d-6e288a1caf6e3fa06a1a2734fe52de3ae6403a2f.gz
2010-08-12 13:00:35 -07:00
coreyoconnor
bcda3db0eb
adding a put_string equation for the inline API.
...
Ignore-this: b1665413f489310eacc0441a8ddb731f
darcs-hash:20100806215448-f0a0d-4dea846225c80f0644ba54a544bce278f3c8bde8.gz
2010-08-06 14:54:48 -07:00
coreyoconnor
9bad126948
be certain to use the same output device as before any stdout redirection
...
Ignore-this: 8d49a95192e5f40a7e26bd403138425
darcs-hash:20100806211634-f0a0d-b80d746b71da80a8e5b7e54e0731a989f837a642.gz
2010-08-06 14:16:34 -07:00
coreyoconnor
0d48e66905
update AUTHORS
...
Ignore-this: 18f2a8550bddc37a7a57fde842beecc9
darcs-hash:20100806211626-f0a0d-001a470303a52e5c6713978eb3cf1928a440bcd2.gz
2010-08-06 14:16:26 -07:00
Yoshikuni Jujo
7759e6e42f
correct move cursor require bytes for double width char
...
Ignore-this: 6e0d31a1960d9f011eaea73e234c7788
darcs-hash:20100602044803-ffa78-1cc8d839a6fcde07eb663e1eb2777532a1aa9c58.gz
2010-06-01 21:48:03 -07:00
Yoshikuni Jujo
6818ffbe9a
image_width -> image_height
...
Ignore-this: ba461b263461d8f0c7c4aa9af962afc0
darcs-hash:20100601233308-ffa78-641136417cb5115e4c519466288b307ab4166e64.gz
2010-06-01 16:33:08 -07:00
Yoshikuni Jujo
870ab1e919
Cursor may be NoCursor
...
Ignore-this: f650d4ebd1dd758b9e0e248fe3d16ae7
darcs-hash:20100601051536-ffa78-9d93f01e09f044bff4131c02bc38e18ce5fed8a6.gz
2010-05-31 22:15:36 -07:00
Yoshikuni Jujo
bd6a360d0b
cursor should be inside of terminal
...
Ignore-this: 2c223dd0d9c789a712de9fc2dcf98d58
0 <= cursor x < terminal w
0 <= cursor y < terminal h
darcs-hash:20100601042123-ffa78-b4f6b75c98253aab171858466bee01aff10d8a2c.gz
2010-05-31 21:21:23 -07:00
coreyoconnor
93b8f8e64c
adding support for Home, End and Begin. Thanks Mikolaj Konarski
...
Ignore-this: 3822563b5eabd2d4ce90cbc718117049
darcs-hash:20100711224618-f0a0d-23e37776eef201f6d5762ee6e7eb1b1645829655.gz
2010-07-11 15:46:18 -07:00
coreyoconnor
0caf0324f9
updating tests to compile against 2.1.0.3
...
Ignore-this: 72681804b946b933b2f8efec031c3a5f
darcs-hash:20100711224040-f0a0d-2ada820209967e001e57e445a7abb2408285bb6b.gz
2010-07-11 15:40:40 -07:00
coreyoconnor
a0497767d8
adding AUTHORS file
...
Ignore-this: 4e12d949b03ee0918981fb8bd905953a
darcs-hash:20100711221920-f0a0d-380c7af5411c2844d8ada87b698564ed7a34b50f.gz
2010-07-11 15:19:20 -07:00
coreyoconnor
02a009d03d
updating use of deepseq to latest package
...
Ignore-this: 652c213cba0b62420ef364ebc3b50e0b
darcs-hash:20100601204907-f0a0d-728d2140b555c1b0d3d2e39d7400aa8d2fa84508.gz
2010-06-01 13:49:07 -07:00