on master help sign in
prep for release 5.2.1
6ba874cCorey O'Connor
CHANGELOG+60−57
@@ -1,3 +1,6 @@
1+5.2.1
2+ - Bump upper version bound for lens to 4.5. Thanks markus1189!
3+
15.2.0
45.2.0
2 - Config structure now specifies file descriptor to use. The default is stdInput and stdOutput
5 - Config structure now specifies file descriptor to use. The default is stdInput and stdOutput
3 file descriptors. Previously Vty used stdInput for input and the follow code for output:
6 file descriptors. Previously Vty used stdInput for input and the follow code for output:
@@ -88,88 +91,88 @@
88 - test/benchmark.hs
91 - test/benchmark.hs
89
92
904.7.0.0
934.7.0.0
91− * API changes:
94+ - API changes:
92− * Added Graphics.Vty.Image.crop: Ensure an image is no larger than the specified size.
95+ - Added Graphics.Vty.Image.crop: Ensure an image is no larger than the specified size.
93− * Added Graphics.Vty.Image.pad: Ensure an image is no smaller than the specified size.
96+ - Added Graphics.Vty.Image.pad: Ensure an image is no smaller than the specified size.
94− * Added Graphics.Vty.Image.translate: Offset an image.
97+ - Added Graphics.Vty.Image.translate: Offset an image.
95− * Thanks Ben Boeckel <MathStuf@gmail.com> for these features.
98+ - Thanks Ben Boeckel <MathStuf@gmail.com> for these features.
96
99
974.3.0.0
1004.3.0.0
98
101
994.2.1.0
1024.2.1.0
100− * API changes:
103+ - API changes:
101− * Attr record accessor fore_color changed to attr_fore_color
104+ - Attr record accessor fore_color changed to attr_fore_color
102− * Attr record accessor back_color changed to attr_back_color
105+ - Attr record accessor back_color changed to attr_back_color
103− * Attr record accessor style changed to attr_style
106+ - Attr record accessor style changed to attr_style
104− * Added an "inline" display attribute changing DSL:
107+ - Added an "inline" display attribute changing DSL:
105− * put_attr_change applies a display attribute change immediately to a terminal
108+ - put_attr_change applies a display attribute change immediately to a terminal
106− * For instance, can be used to change the display attrbiutes of text output via putStrLn
109+ - For instance, can be used to change the display attrbiutes of text output via putStrLn
107 and putStr. EX: "put_attr_change $ back_color red" will set the
110 and putStr. EX: "put_attr_change $ back_color red" will set the
108 background color to red.
111 background color to red.
109− * Changes do not apply to a Picture output via output_picture.
112+ - Changes do not apply to a Picture output via output_picture.
110− * See Graphics.Vty.Inline
113+ - See Graphics.Vty.Inline
111− * Moved all IO actions into any monad an instance of MonadIO
114+ - Moved all IO actions into any monad an instance of MonadIO
112
115
1134.0.0.1
1164.0.0.1
114− * binding for mk_wcswidth was incorrect. Most platforms just magically worked due to
117+ - binding for mk_wcswidth was incorrect. Most platforms just magically worked due to
115 coincidence.
118 coincidence.
116
119
1174.0.0
1204.0.0
118− * API changes:
121+ - API changes:
119− * "getSize" has been removed. Use "terminal vty >>= display_bounds" where "vty" is an
122+ - "getSize" has been removed. Use "terminal vty >>= display_bounds" where "vty" is an
120 instance of the Vty data structure.
123 instance of the Vty data structure.
121− * added a "terminal" field to the Vty data structure. Accesses the TerminalHandle associated
124+ - added a "terminal" field to the Vty data structure. Accesses the TerminalHandle associated
122 with the Vty instance.
125 with the Vty instance.
123− * Graphics.Vty.Types has undergone a number of changes. Summary:
126+ - Graphics.Vty.Types has undergone a number of changes. Summary:
124− * Partitioned into Graphics.Vty.Attributes for display attributes. Graphics.Vty.Image for
127+ - Partitioned into Graphics.Vty.Attributes for display attributes. Graphics.Vty.Image for
125 image combinators. Graphics.Vty.Picture for final picture construction.
128 image combinators. Graphics.Vty.Picture for final picture construction.
126− * Graphics.Vty.Attributes:
129+ - Graphics.Vty.Attributes:
127− * "setFG" and "setBG" are now "with_fore_color" and "with_back_color"
130+ - "setFG" and "setBG" are now "with_fore_color" and "with_back_color"
128− * All other "set.." equations similarly replaced.
131+ - All other "set.." equations similarly replaced.
129− * "attr" is now "def_attr", short for "default display attributes" Also added a
132+ - "attr" is now "def_attr", short for "default display attributes" Also added a
130 "current_attr" for "currently applied display attributes"
133 "current_attr" for "currently applied display attributes"
131− * Graphics.Vty.Image:
134+ - Graphics.Vty.Image:
132− * "horzcat" is now "horiz_cat"
135+ - "horzcat" is now "horiz_cat"
133− * "vertcat" is now "vert_cat"
136+ - "vertcat" is now "vert_cat"
134− * "renderBS" is now "utf8_bytestring"
137+ - "renderBS" is now "utf8_bytestring"
135− * "renderChar" is now "char"
138+ - "renderChar" is now "char"
136− * "renderFill" is now "char_fill"
139+ - "renderFill" is now "char_fill"
137− * added a "utf8_string" and "string" (AKA "iso_10464_string") for UTF-8 encoded Strings
140+ - added a "utf8_string" and "string" (AKA "iso_10464_string") for UTF-8 encoded Strings
138 and ISO-10464 encoded Strings. String literals in GHC have an ISO-10464 runtime
141 and ISO-10464 encoded Strings. String literals in GHC have an ISO-10464 runtime
139 representation.
142 representation.
140− * Graphics.Vty.Picture:
143+ - Graphics.Vty.Picture:
141− * exports Graphics.Vty.Image
144+ - exports Graphics.Vty.Image
142− * "pic" is now "pic_for_image"
145+ - "pic" is now "pic_for_image"
143− * added API for setting background fill pattern.
146+ - added API for setting background fill pattern.
144− * Completely rewritten output backend.
147+ - Completely rewritten output backend.
145− * Efficient, scanline style output span generator. Has not been fully optimized, but good
148+ - Efficient, scanline style output span generator. Has not been fully optimized, but good
146 enough.
149 enough.
147− * The details required to display the desired picture on a terminal are well encapsulated.
150+ - The details required to display the desired picture on a terminal are well encapsulated.
148− * Terminfo based display terminal implementation. With specialized derivitives for xterm,
151+ - Terminfo based display terminal implementation. With specialized derivitives for xterm,
149 Terminal.app, and iTerm.app.
152 Terminal.app, and iTerm.app.
150− * Attempts to robustly handle even terminals that don't support all display attributes.
153+ - Attempts to robustly handle even terminals that don't support all display attributes.
151− * I've tested the following terminals with success: iTerm.app, Terminal.app, xterm,
154+ - I've tested the following terminals with success: iTerm.app, Terminal.app, xterm,
152 rxvt, mlterm, Eterm, gnome-terminal, konsole, screen, linux vty. Hopefully you will be
155 rxvt, mlterm, Eterm, gnome-terminal, konsole, screen, linux vty. Hopefully you will be
153 as successfull.
156 as successfull.
154− * Improved unicode support. Double wide characters will display as expected.
157+ - Improved unicode support. Double wide characters will display as expected.
155− * 256 color support. See Graphics.Vty.Attributes.Color240. The actual output color is adjusted
158+ - 256 color support. See Graphics.Vty.Attributes.Color240. The actual output color is adjusted
156 according to the number of colors the terminal supports.
159 according to the number of colors the terminal supports.
157− * The Graphics.Vty.Image combinators no longer require matching dimensions to arguments.
160+ - The Graphics.Vty.Image combinators no longer require matching dimensions to arguments.
158 Unspecified areas are filled in with a user-customizable background pattern. See
161 Unspecified areas are filled in with a user-customizable background pattern. See
159 Graphics.Vty.Picture.
162 Graphics.Vty.Picture.
160− * output images are always cropped to display size.
163+ - output images are always cropped to display size.
161− * Significant code coverage by QuickCheck tests. An interactive test for those final properties
164+ - Significant code coverage by QuickCheck tests. An interactive test for those final properties
162 that couldn't be automatically verified.
165 that couldn't be automatically verified.
163
166
164 issues resolved:
167 issues resolved:
165− * "gnome terminal displays non-basic attributes as strikethrough"
168+ - "gnome terminal displays non-basic attributes as strikethrough"
166− * http://trac.haskell.org/vty/ticket/14
169+ - http://trac.haskell.org/vty/ticket/14
167− * "Multi-byte characters are not displayed correctly on update"
170+ - "Multi-byte characters are not displayed correctly on update"
168− * http://trac.haskell.org/vty/ticket/10
171+ - http://trac.haskell.org/vty/ticket/10
169− * "Redraw does not handle rendering a line that extends beyond screen width characters"
172+ - "Redraw does not handle rendering a line that extends beyond screen width characters"
170− * http://trac.haskell.org/vty/ticket/13
173+ - http://trac.haskell.org/vty/ticket/13
171− * "The <|> and <-> combinators should be more forgiving of mismatched dimensions"
174+ - "The <|> and <-> combinators should be more forgiving of mismatched dimensions"
172− * http://trac.haskell.org/vty/ticket/9
175+ - http://trac.haskell.org/vty/ticket/9
173− * "256-color support"
176+ - "256-color support"
174− * http://trac.haskell.org/vty/ticket/19
177+ - http://trac.haskell.org/vty/ticket/19
175
178
src/Graphics/Vty/Config.hs+1−1
@@ -51,7 +51,7 @@
51-- @
51-- @
52-- map _ \"\\ESC[B\" KUp []
52-- map _ \"\\ESC[B\" KUp []
53-- map _ \"\\ESC[1;3B\" KDown [MAlt]
53-- map _ \"\\ESC[1;3B\" KDown [MAlt]
54−-- map "xterm" \"\\ESC[D\" KLeft []
54+-- map \"xterm\" \"\\ESC[D\" KLeft []
55-- @
55-- @
56--
56--
57-- Then the bytes @\"\\ESC[B\"@ will result in the KUp event on all terminals. The bytes
57-- Then the bytes @\"\\ESC[B\"@ will result in the KUp event on all terminals. The bytes
vty.cabal+1−1
@@ -1,5 +1,5 @@
1name: vty
1name: vty
2−version: 5.2.0
2+version: 5.2.1
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: AUTHORS
5author: AUTHORS