Colby Jenn
800336f789
move color documentation to separate module
2019-06-16 13:14:14 -05:00
Colby Jenn
ed27311ba7
Clarify haddock for ANSI colors
...
We have to copy the Color.hs exports to Attributes.hs
to be able to write haddocks, unfortunately
2019-06-07 00:35:27 -05:00
Jonathan Daugherty
fc95860718
Merge pull request #168 from Supernerd11/lookupEnv
...
Changed System.Posix.Env (specifically 'getEnv') to System.Environment
2019-02-23 08:40:32 -08:00
Jonathan Osser
0a41207bea
Removed commented out import System.Posix.Env
2019-02-23 10:20:10 +01:00
Jonathan Osser
ee208766d5
Changed System.Posix.Env (specifically 'getEnv') to System.Environment
2019-02-22 23:28:07 +01:00
Jonathan Daugherty
38948b4c4f
utf8Bytestring': correct typo in docstring
2018-12-27 08:54:20 -08:00
Jonathan Daugherty
0e1fc0e916
spelling cleanup: effected -> affected
2018-11-28 11:40:30 -08:00
Jonathan Daugherty
222f2bdaef
Remove unneeded inline rules for wctwidth, wctlwidth
2018-11-28 11:26:38 -08:00
Jonathan Daugherty
c384656988
Add rewrite rules to use wct(l)width instead of wcswidth/unpack
2018-11-28 11:17:43 -08:00
Jonathan Daugherty
d64ff96027
Improve space performance of text width functions
...
This change introduces new text width functions to avoid intermediate
text/string conversions:
* Graphics.Text.Width.wctwidth
* Graphics.Text.Width.wctlwidth
* Graphics.Text.Width.safeWctwidth
* Graphics.Text.Width.safeWctlwidth
The 't' versions are for Data.Text and 'tl' are for Data.Text.Lazy. This
change also updates the string variants to use foldl' instead of (map .
sum).
2018-11-28 11:08:44 -08:00
Jonathan Daugherty
ec7b51eaa7
Bump version, update changelog
2018-11-04 07:40:46 -08:00
Jonathan Daugherty
8f32f8ea4c
PictureToSpans: replace specialized lens operators with more fundamental ones
...
This change removes -~ and +~ definitions that can conflict with those
provided by Microlens, and which were just copies of what Microlens now
provides. Instead of using those, this change just inlines their
functionality in the right spots so that we don't have to conditionally
define or import those operators depending on the version of Microlens,
which just recently started to provide these.
This change also goes ahead and introduces an upper bound on Microlens
to avoid future issues like this.
2018-11-04 07:35:11 -08:00
Jonathan Daugherty
74a72ff59f
Bump version, update changelog
2018-10-15 13:38:09 -07:00
Jonathan Daugherty
3a8dc67865
Merge pull request #161 from seagreen/is-shutdown
...
Add isShutdown field to Vty.
2018-10-15 13:36:24 -07:00
Ian Grant Jeffries
57342ae29a
Add isShutdown field to Vty.
2018-10-15 16:40:36 -04:00
Jonathan Daugherty
8207c1497f
Vty: avoid race in "shutdown"
2018-10-15 11:06:28 -07:00
Jonathan Daugherty
3ca08b3204
Bump version, update changelog
2018-10-14 20:01:23 -07:00
Jonathan Daugherty
5050413a2b
Make the "shutdown" method of Vty idempotent ( fixes #159 )
2018-10-14 20:00:28 -07:00
Jonathan Daugherty
53c02c6516
Bump version, update changelog
2018-09-06 12:36:11 -07:00
Jonathan Daugherty
612a091ee8
Add Generic and NFData instances for some types
2018-08-27 16:04:04 -07:00
Jonathan Daugherty
4953368aff
outputPicture: factor out vector/list conversions
2018-08-27 09:12:25 -07:00
Jonathan Daugherty
d8ead321f9
Image: remove custom Show instance, add derived Show and Read instances
2018-08-23 12:55:16 -07:00
Eric Mertens
297a7e7327
Remove unfinished test stub
...
Fixes #158
2018-07-30 09:41:19 -07:00
Jonathan Daugherty
188cc1a03f
Merge pull request #157 from glguy/travis
...
update travis build settings
2018-07-29 12:18:47 -07:00
Eric Mertens
47c074d112
update travis build settings
2018-07-29 10:01:47 -07:00
Jonathan Daugherty
bba5f0e36f
Bump version, update changelog
2018-07-28 17:54:47 -07:00
Jonathan Daugherty
11d31e8fe1
Merge pull request #156 from glguy/italics-fix
...
Fix SGR command after italics change
2018-07-28 17:53:56 -07:00
Eric Mertens
7a38067b38
Fix SGR command after italics change
...
SGR doesn't control italics. If we're updating the terminal style
using SGR and italics are needed the enter sequence will have to
be added after the SGR command.
2018-07-28 15:55:31 -07:00
Jonathan Daugherty
181a5d77df
Bump version, update changelog
2018-07-27 13:32:34 -07:00
Jonathan Daugherty
e23742907a
Add support for italicized output when terminfo supports it
2018-07-27 13:30:52 -07:00
Jonathan Daugherty
bb68f7ae05
Image: update text/string functions to indicate that escapes are not permitted
2018-07-26 07:23:48 -07:00
Jonathan Daugherty
3a3d6b35a0
Bump version, update changelog
2018-07-12 12:18:46 -07:00
Jonathan Daugherty
337e9a6ef1
Merge pull request #153 from spaceships/feature/color240ToRGB
...
Attributes/Color240: Add color240ToRGB function
2018-07-11 17:46:44 -07:00
Brent Carmer
c3796a88f9
color240CodeToRGB: return Nothing instead of error
2018-07-11 17:25:09 -07:00
Brent Carmer
36aec9f14d
color240ToRGB: rename color240CodeToRGB, take Word8 as input
2018-07-11 16:38:00 -07:00
Brent Carmer
a2f3f9c74e
Attributes/Color240: Add color240ToRGB function
2018-07-11 16:05:23 -07:00
Jonathan Daugherty
bf96356533
Vty: add nextEventNonblocking ( fixes #87 )
2018-03-19 15:18:01 -07:00
Jonathan Daugherty
adc4d70eea
Vty: update stale docstrings ( fixes #150 )
2018-03-19 15:10:20 -07:00
Jonathan Daugherty
6f4edc0228
Bump version, update changelog
2018-03-17 09:42:38 -07:00
Jonathan Daugherty
5aea21203d
Merge pull request #149 from noughtmare/master
...
Derive Eq for Picture and Background
2018-03-17 09:40:30 -07:00
Jaro Reinders
b45d598e00
Derive Eq for Picture and Background
2018-03-17 17:25:24 +01:00
Jonathan Daugherty
97f48dc312
Merge pull request #146 from dmwit/master
...
issue #145 : hide microlens' new <>~
2018-03-09 13:32:58 -08:00
Daniel Wagner
d589780fe1
issue #145 : hide microlens' new <>~
2018-03-09 16:25:05 -05:00
Jonathan Daugherty
a1db0e4716
Add notes about requirement of threaded RTS ( fixes #142 )
2018-02-06 08:40:00 -08:00
Jonathan Daugherty
5d4498faa7
Bump version, update changelog
2018-02-04 15:23:57 -08:00
Jonathan Daugherty
f8ca4500c9
Merge pull request #141 from RyanGlScott/master
...
Add Semigroup instances
2018-02-04 14:17:08 -08:00
Ryan Scott
433b5b7f2d
Add Semigroup instances
2018-02-04 16:30:29 -05:00
Jonathan Daugherty
f2be6a0e20
outputPicture: clamp invalid cursor positions when Cursor is used ( fixes #140 )
2018-01-18 20:18:31 -08:00
Jonathan Daugherty
9ae2df4d2b
Bump version, update changelog
2018-01-05 08:40:00 -08:00
Jonathan Daugherty
1fe6bdb08a
Merge pull request #139 from noughtmare/patch-2
...
Derive Eq for Cursor
2018-01-05 08:22:14 -08:00