Commit Graph

44 Commits

Author SHA1 Message Date
Jonathan Daugherty
1741b935c5 Update example programs to use new default values 2017-01-24 11:46:14 -08:00
Jonathan Daugherty
ba2b6356ea Library-wide trailing whitespace cleanup 2017-01-21 22:21:58 -08:00
Corey O'Connor
cceeeeeeb2 Resolve #76. Terminfo "clear to end of line" does not mean what I thought it means.
I though this would clear the text and current display attributes from the cursor to end of the line.
This is not the case. The display attribute is state of the output cursor and not the already
dislayed text.

This change sets the default display attributes at the end of a line as well as the start of a new
line.

This passes all the tests but will cause a regression in Yi: The display of a selection area will
not extend to the end of the screen. However, I have a branch of Yi that adds vertical splits. In
order to implement this the selection area display code needed to handle extending the image to the
end of the frame.
2015-08-08 18:14:08 -07:00
Corey O'Connor
4391f6212b try having travis CI use cabal-install 1.20 for test compat 2014-08-14 17:37:23 -07:00
Sebastian J. Mielke
e0f29a7da7 Add ScopedTypeVariables pragma to interactive_terminal_test
Otherwise l. 77 (now 78) "_ :: SomeException" doesn't seem to work
2014-06-22 18:36:03 +02:00
Corey O'Connor
2c756c1158 fixup examples that use outputForCurrentTerminal 2014-05-31 18:12:20 -07:00
Corey O'Connor
8abf7f94c6 commentary update 2014-04-14 22:07:31 -07:00
Corey O'Connor
aa2887657e more naming convention updates 2014-04-11 20:54:00 -07:00
Corey O'Connor
a4ef14d1d9 refactor vty to use standard naming convention. 2014-04-11 17:51:13 -07:00
Corey O'Connor
b34a7f0bb8 correct compile failures 2014-01-26 13:25:13 -08:00
Corey O'Connor
fe5195dac2 fixup examples 2013-12-25 08:03:22 +01:00
Corey O'Connor
4e45d7c024 rename DisplayRegion module to Prelude 2013-12-19 22:24:56 -08:00
Corey O'Connor
2e7bc4c3fc refactor input layer a bit more. closer to testable 2013-09-14 23:56:06 -07:00
Corey O'Connor
00ad57005f add another test of layer support. Animate an image over another 2013-08-21 09:15:20 -07:00
Corey O'Connor
195282aa74 add interactive test of layers. 2013-08-20 23:16:33 -07:00
Corey O'Connor
ada920d094 minor adjustments to the dummy text. which I also hope is nothing offensive. 2013-08-13 15:06:33 -06:00
Corey O'Connor
2dc9f45a8c horizontal cropping tests 2013-08-13 15:05:10 -06:00
Corey O'Connor
5fb702eeb1 add some interactive tests for the vertial crop operations 2013-08-13 14:53:40 -06:00
Corey O'Connor
4b6f75b989 implement a test for all terminfo based terminals this should support 2013-07-07 23:31:24 -07:00
Corey O'Connor
fd3df90f1f Move from a typeclass to a structure of properties interface for terminals and display contexts. 2013-07-07 13:55:23 -07:00
Amy de Buitléir
506979fe13 Fix for issue #35 2013-02-14 16:36:58 +00:00
Corey O'Connor
53d501be14 adjust expected output in interactive test to account for how the initial newline is handled in the string quasiquoter 2013-02-08 20:05:53 -08:00
Corey O'Connor
a11ac811ad update docs 2012-12-26 16:48:38 -07:00
Corey O'Connor
8211ead8d5 fix QuickCheck dependency. add interactive-terminal-test to executables section. add test for issue 7 2012-12-26 16:40:19 -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
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
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
f6c3cbfa01 adding example of Graphics.Vty.Inline to test
Ignore-this: e82f6a3b8eec33ab55fd04a51f4d9873

darcs-hash:20091228233218-f0a0d-345ddcbee616acc4f39d9d12393bdea5982f34d9.gz
2009-12-28 15:32:18 -08:00
coreyoconnor
9bf5dcf09b put_default_attr replaced by the original default_all AttrChange action
Ignore-this: 1c3ebb2722638609932e859e70316e8a

darcs-hash:20091109214205-f0a0d-d91ac7d77710d12ccbc06f4bb544d82dc6bfeab3.gz
2009-11-09 13:42:05 -08:00
coreyoconnor
9f93852364 -
Ignore-this: 6719e4a6225fc03cc754c6bb1d6a2ef5

darcs-hash:20091109075544-f0a0d-0bbf34e26375c205c2018c91d105ffac64e017f1.gz
2009-11-08 23:55:44 -08:00
coreyoconnor
d506ea570e -
Ignore-this: aa036ec35ef000a0c4e66c8236f7641c

darcs-hash:20091109074043-f0a0d-880cb60439b1dc6089511224431f3b1eb54e5c93.gz
2009-11-08 23:40:43 -08:00
coreyoconnor
7f75f0d0af -
Ignore-this: db643dff6f295a4d363b4e8634a8393a

darcs-hash:20091109070521-f0a0d-0e657824eb6eabe8f94ce117baecae4a853f0d5f.gz
2009-11-08 23:05:21 -08:00
coreyoconnor
0aa8302ff0 -
Ignore-this: bbfc93d96e760471de7498ef34543353

darcs-hash:20091109053735-f0a0d-b6d85f94f919ce49bd5b5aebf7ad3b8c6d84f317.gz
2009-11-08 21:37:35 -08:00
coreyoconnor
82fd9c4538 Moved all IO actions to MonadIO
Ignore-this: 69cf0259898de9ab296861ab26630460

darcs-hash:20091109053436-f0a0d-0e2ae084dd91d09216d494a2aa84958ac71ef2f7.gz
2009-11-08 21:34:36 -08:00
coreyoconnor
bd0f87ad66 changed the Graphics.Vty.AttributeChange.style to apply_style and remove_style. Implemented
Ignore-this: cd091fbe723cc0827c72336f892eca8

darcs-hash:20091109022308-f0a0d-3035dec41ff51edc908e6bc920567781f38ffbbd.gz
2009-11-08 18:23:08 -08:00
coreyoconnor
a9c1532905 -
Ignore-this: 6760a9d5f7046574c57e19e4765be2c5

darcs-hash:20091109004102-f0a0d-200c832476604fc2c2437e103b027ce64d3d879f.gz
2009-11-08 16:41:02 -08:00
coreyoconnor
02c916ddd2 -
Ignore-this: 1e66e43b2422ed5097ff45d1c8e4c810

darcs-hash:20091108234435-f0a0d-ae7cd612717955c8f06de00c4966d00c3a7d32bd.gz
2009-11-08 15:44:35 -08:00
coreyoconnor
11832299bf start of implementing put_attr_change
Ignore-this: 9c764d734d84fa2fa9146d87d2ae4f9d

darcs-hash:20091108234349-f0a0d-d9e25c48aafc6ee7a93cf13b2ab2c3f9f7892d83.gz
2009-11-08 15:43:49 -08:00
coreyoconnor
bde5a931bf change Attr record accessors
Ignore-this: 3b7f59cd9b1e753e4d8695d699229cb2

darcs-hash:20091108225727-f0a0d-a7c91d2a369b6ed936a0c7bd889fd2052e44628b.gz
2009-11-08 14:57:27 -08:00
coreyoconnor
a1cae010bc prototype interface for inline image output
Ignore-this: d425b409f782677c52e6725d865529c8

darcs-hash:20091107085229-f0a0d-a4c5362807a12116c7bae3731402f85a647fd641.gz
2009-11-07 00:52:29 -08:00
coreyoconnor
be59089d9d -
Ignore-this: 8cce5ae10bea4f6ad69c2ceb4bbd2422

darcs-hash:20091107083701-f0a0d-195fd78296c015a46f52f0c5d604cc31197599ae.gz
2009-11-07 00:37:01 -08:00
coreyoconnor
dcc295163e References to ISO-10464 (testing of gas cylinders) should actually be ISO-10646. (John Pybus)
Ignore-this: e1f8669ebe9101e7c1897713e4a03e05

darcs-hash:20090906023356-f0a0d-bc7e20472f9fd9a0a227f71d84ddf93b063a118b.gz
2009-09-05 19:33:56 -07:00
coreyoconnor
7b38759846 use alloca instead of mallocBytes for exception safety
Ignore-this: 1d31bef2e227fefafe8bb4b6f9511e1d

darcs-hash:20090904172928-f0a0d-987b6931294fd33f7825eddc0adf04c81716a4dd.gz
2009-09-04 10:29:28 -07:00