on 5.12 help sign in
vty/vty.cabal
647 lines 22 kB history raw
1name: vty
2version: 5.12
3license: BSD3
4license-file: LICENSE
5author: AUTHORS
6maintainer: Jonathan Daugherty (cygnus@foobox.com)
7homepage: https://github.com/coreyoconnor/vty
8category: User Interfaces
9synopsis: A simple terminal UI library
10description:
11 vty is terminal GUI library in the niche of ncurses. It is intended to
12 be easy to use, have no confusing corner cases, and good support for
13 common terminal types.
14 .
15 Included in the source distribution is a program
16 test/interactive_terminal_test.hs that demonstrates the various
17 features.
18 .
19 Developers: See the "Graphics.Vty" module.
20 .
21 Users: See the "Graphics.Vty.Config" module.
22 .
23 If your terminal is not behaving as expected the results of the
24 vty-interactive-terminal-test executable should be sent to the Vty
25 maintainter to aid in debugging the issue.
26 .
27 Notable infelicities: Assumes UTF-8 character encoding support by the
28 terminal; Poor signal handling; Requires terminfo.
29 .
30 This project is hosted on github.com: <https://github.com/coreyoconnor/vty>
31 .
32 > git clone git://github.com/coreyoconnor/vty.git
33 .
34 &#169; 2006-2007 Stefan O'Rear; BSD3 license.
35 .
36 &#169; Corey O'Connor; BSD3 license.
37cabal-version: >= 1.18
38build-type: Simple
39data-files: README.md,
40 TODO,
41 AUTHORS,
42 CHANGELOG,
43 LICENSE,
44 cbits/utf8proc/utf8proc_data.c
45 cbits/utf8proc/utf8proc.h
46 cbits/utf8proc/LICENSE.md
47 cbits/utf8proc/README.md
48 cbits/utf8proc/COMMIT
50tested-with: GHC >= 7.6.2
52source-repository head
53 type: git
54 location: https://github.com/coreyoconnor/vty.git
56library
57 default-language: Haskell2010
58 build-depends: base >= 4 && < 5,
59 blaze-builder >= 0.3.3.2 && < 0.5,
60 bytestring,
61 containers,
62 data-default >= 0.5.3,
63 deepseq >= 1.1 && < 1.5,
64 directory,
65 filepath >= 1.0 && < 2.0,
66 microlens,
67 microlens-mtl,
68 microlens-th,
69 -- required for nice installation with yi
70 hashable >= 1.2,
71 mtl >= 1.1.1.0 && < 2.3,
72 parallel >= 2.2 && < 3.3,
73 parsec >= 2 && < 4,
74 stm,
75 terminfo >= 0.3 && < 0.5,
76 transformers >= 0.3.0.0,
77 text >= 0.11.3,
78 unix,
79 utf8-string >= 0.3 && < 1.1,
80 vector >= 0.7
82 exposed-modules: Graphics.Vty
83 Graphics.Vty.Attributes
84 Graphics.Vty.Config
85 Graphics.Vty.Error
86 Graphics.Vty.Image
87 Graphics.Vty.Inline
88 Graphics.Vty.Inline.Unsafe
89 Graphics.Vty.Input
90 Graphics.Vty.Input.Events
91 Graphics.Vty.Picture
92 Graphics.Vty.Prelude
93 Graphics.Vty.Output
94 Graphics.Text.Width
95 -- the modules below are only meant to be used by the tests.
96 Codec.Binary.UTF8.Debug
97 Data.Terminfo.Parse
98 Data.Terminfo.Eval
99 Graphics.Vty.Debug
100 Graphics.Vty.DisplayAttributes
101 Graphics.Vty.Image.Internal
102 Graphics.Vty.Input.Classify
103 Graphics.Vty.Input.Classify.Types
104 Graphics.Vty.Input.Classify.Parse
105 Graphics.Vty.Input.Loop
106 Graphics.Vty.Input.Mouse
107 Graphics.Vty.Input.Paste
108 Graphics.Vty.Input.Terminfo
109 Graphics.Vty.PictureToSpans
110 Graphics.Vty.Span
111 Graphics.Vty.Output.Mock
112 Graphics.Vty.Output.Interface
113 Graphics.Vty.Output.XTermColor
114 Graphics.Vty.Output.TerminfoBased
116 other-modules: Graphics.Vty.Attributes.Color
117 Graphics.Vty.Attributes.Color240
118 Graphics.Vty.Debug.Image
119 Graphics.Vty.Input.Terminfo.ANSIVT
121 c-sources: cbits/gwinsz.c
122 cbits/set_term_timing.c
123 cbits/mk_wcwidth.c
124 cbits/utf8proc/utf8proc.c
126 include-dirs: cbits
127 cbits/utf8proc
129 hs-source-dirs: src
131 default-extensions: ScopedTypeVariables
132 ForeignFunctionInterface
134 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
136 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
138 cc-options: -O2
140executable vty-mode-demo
141 main-is: ModeDemo.hs
143 default-language: Haskell2010
144 default-extensions: ScopedTypeVariables
145 ghc-options: -threaded
147 build-depends: vty,
148 base >= 4 && < 5,
149 containers,
150 data-default >= 0.5.3,
151 microlens,
152 microlens-mtl,
153 mtl >= 1.1.1.0 && < 2.3
155executable vty-demo
156 main-is: Demo.hs
158 default-language: Haskell2010
159 default-extensions: ScopedTypeVariables
160 ghc-options: -threaded
162 build-depends: vty,
163 base >= 4 && < 5,
164 containers,
165 data-default >= 0.5.3,
166 microlens,
167 microlens-mtl,
168 mtl >= 1.1.1.0 && < 2.3
170test-suite verify-attribute-ops
171 default-language: Haskell2010
172 default-extensions: ScopedTypeVariables
173 type: detailed-0.9
174 hs-source-dirs: test
175 test-module: VerifyAttributeOps
176 build-depends: vty,
177 Cabal >= 1.20,
178 QuickCheck >= 2.7,
179 random >= 1.0 && < 1.2,
180 base >= 4 && < 5,
181 bytestring,
182 containers,
183 deepseq >= 1.1 && < 1.5,
184 mtl >= 1.1.1.0 && < 2.3,
185 text >= 0.11.3,
186 unix,
187 utf8-string >= 0.3 && < 1.1,
188 vector >= 0.7
190test-suite verify-using-mock-terminal
191 default-language: Haskell2010
192 default-extensions: ScopedTypeVariables
194 type: detailed-0.9
196 hs-source-dirs: test
198 test-module: VerifyUsingMockTerminal
200 other-modules: Verify
201 Verify.Graphics.Vty.Attributes
202 Verify.Graphics.Vty.Prelude
203 Verify.Graphics.Vty.Picture
204 Verify.Graphics.Vty.Image
205 Verify.Graphics.Vty.Span
206 Verify.Graphics.Vty.Output
208 build-depends: vty,
209 Cabal >= 1.20,
210 QuickCheck >= 2.7,
211 random >= 1.0 && < 1.2,
212 base >= 4 && < 5,
213 bytestring,
214 containers,
215 deepseq >= 1.1 && < 1.5,
216 mtl >= 1.1.1.0 && < 2.3,
217 text >= 0.11.3,
218 terminfo >= 0.3 && < 0.5,
219 unix,
220 utf8-string >= 0.3 && < 1.1,
221 vector >= 0.7
223test-suite verify-terminal
224 default-language: Haskell2010
225 default-extensions: ScopedTypeVariables
227 type: detailed-0.9
229 hs-source-dirs: test
231 test-module: VerifyOutput
233 other-modules: Verify
234 Verify.Graphics.Vty.Attributes
235 Verify.Graphics.Vty.Prelude
236 Verify.Graphics.Vty.Picture
237 Verify.Graphics.Vty.Image
238 Verify.Graphics.Vty.Span
239 Verify.Graphics.Vty.Output
241 build-depends: vty,
242 Cabal >= 1.20,
243 QuickCheck >= 2.7,
244 random >= 1.0 && < 1.2,
245 base >= 4 && < 5,
246 bytestring,
247 containers,
248 data-default >= 0.5.3,
249 deepseq >= 1.1 && < 1.5,
250 mtl >= 1.1.1.0 && < 2.3,
251 terminfo >= 0.3 && < 0.5,
252 text >= 0.11.3,
253 unix,
254 utf8-string >= 0.3 && < 1.1,
255 vector >= 0.7
257test-suite verify-display-attributes
258 default-language: Haskell2010
259 default-extensions: ScopedTypeVariables
261 type: detailed-0.9
263 hs-source-dirs: test
265 test-module: VerifyDisplayAttributes
267 other-modules: Verify
268 Verify.Graphics.Vty.Attributes
269 Verify.Graphics.Vty.DisplayAttributes
270 Verify.Graphics.Vty.Prelude
271 Verify.Graphics.Vty.Picture
272 Verify.Graphics.Vty.Image
273 Verify.Graphics.Vty.Span
275 build-depends: vty,
276 Cabal >= 1.20,
277 QuickCheck >= 2.7,
278 random >= 1.0 && < 1.2,
279 base >= 4 && < 5,
280 bytestring,
281 containers,
282 deepseq >= 1.1 && < 1.5,
283 mtl >= 1.1.1.0 && < 2.3,
284 text >= 0.11.3,
285 unix,
286 utf8-string >= 0.3 && < 1.1,
287 vector >= 0.7
289test-suite verify-empty-image-props
290 default-language: Haskell2010
291 default-extensions: ScopedTypeVariables
293 type: detailed-0.9
295 hs-source-dirs: test
297 test-module: VerifyEmptyImageProps
299 other-modules: Verify
301 build-depends: vty,
302 Cabal >= 1.20,
303 QuickCheck >= 2.7,
304 random >= 1.0 && < 1.2,
305 base >= 4 && < 5,
306 bytestring,
307 containers,
308 deepseq >= 1.1 && < 1.5,
309 mtl >= 1.1.1.0 && < 2.3,
310 text >= 0.11.3,
311 unix,
312 utf8-string >= 0.3 && < 1.1,
313 vector >= 0.7
315test-suite verify-eval-terminfo-caps
316 default-language: Haskell2010
317 default-extensions: ScopedTypeVariables
319 type: detailed-0.9
321 hs-source-dirs: test
323 test-module: VerifyEvalTerminfoCaps
325 other-modules: Verify
326 Verify.Graphics.Vty.Output
328 build-depends: vty,
329 Cabal >= 1.20,
330 QuickCheck >= 2.7,
331 random >= 1.0 && < 1.2,
332 base >= 4 && < 5,
333 blaze-builder >= 0.3.3.2 && < 0.5,
334 bytestring,
335 containers,
336 deepseq >= 1.1 && < 1.5,
337 mtl >= 1.1.1.0 && < 2.3,
338 terminfo >= 0.3 && < 0.5,
339 text >= 0.11.3,
340 unix,
341 utf8-string >= 0.3 && < 1.1,
342 vector >= 0.7
344test-suite verify-image-ops
345 default-language: Haskell2010
346 default-extensions: ScopedTypeVariables
348 type: detailed-0.9
350 hs-source-dirs: test
352 test-module: VerifyImageOps
354 other-modules: Verify
355 Verify.Graphics.Vty.Attributes
356 Verify.Graphics.Vty.Image
358 build-depends: vty,
359 Cabal >= 1.20,
360 QuickCheck >= 2.7,
361 random >= 1.0 && < 1.2,
362 base >= 4 && < 5,
363 bytestring,
364 containers,
365 deepseq >= 1.1 && < 1.5,
366 mtl >= 1.1.1.0 && < 2.3,
367 text >= 0.11.3,
368 unix,
369 utf8-string >= 0.3 && < 1.1,
370 vector >= 0.7
372test-suite verify-image-trans
373 default-language: Haskell2010
374 default-extensions: ScopedTypeVariables
376 type: detailed-0.9
378 hs-source-dirs: test
380 test-module: VerifyImageTrans
382 other-modules: Verify
383 Verify.Graphics.Vty.Attributes
384 Verify.Graphics.Vty.Image
386 build-depends: vty,
387 Cabal >= 1.20,
388 QuickCheck >= 2.7,
389 random >= 1.0 && < 1.2,
390 base >= 4 && < 5,
391 bytestring,
392 containers,
393 deepseq >= 1.1 && < 1.5,
394 mtl >= 1.1.1.0 && < 2.3,
395 text >= 0.11.3,
396 unix,
397 utf8-string >= 0.3 && < 1.1,
398 vector >= 0.7
400test-suite verify-inline
401 default-language: Haskell2010
402 default-extensions: ScopedTypeVariables
404 type: detailed-0.9
406 hs-source-dirs: test
408 test-module: VerifyInline
410 other-modules: Verify
411 Verify.Graphics.Vty.Output
413 build-depends: vty,
414 Cabal >= 1.20,
415 QuickCheck >= 2.7,
416 random >= 1.0 && < 1.2,
417 base >= 4 && < 5,
418 bytestring,
419 containers,
420 deepseq >= 1.1 && < 1.5,
421 mtl >= 1.1.1.0 && < 2.3,
422 text >= 0.11.3,
423 unix,
424 utf8-string >= 0.3 && < 1.1,
425 vector >= 0.7
427test-suite verify-parse-terminfo-caps
428 default-language: Haskell2010
429 default-extensions: ScopedTypeVariables
431 type: detailed-0.9
433 hs-source-dirs: test
435 test-module: VerifyParseTerminfoCaps
437 other-modules: Verify
438 Verify.Data.Terminfo.Parse
439 Verify.Graphics.Vty.Output
441 build-depends: vty,
442 Cabal >= 1.20,
443 QuickCheck >= 2.7,
444 random >= 1.0 && < 1.2,
445 base >= 4 && < 5,
446 bytestring,
447 containers,
448 deepseq >= 1.1 && < 1.5,
449 mtl >= 1.1.1.0 && < 2.3,
450 terminfo >= 0.3 && < 0.5,
451 text >= 0.11.3,
452 unix,
453 utf8-string >= 0.3 && < 1.1,
454 vector >= 0.7
456test-suite verify-simple-span-generation
457 default-language: Haskell2010
458 default-extensions: ScopedTypeVariables
460 type: detailed-0.9
462 hs-source-dirs: test
464 test-module: VerifySimpleSpanGeneration
466 other-modules: Verify
467 Verify.Graphics.Vty.Attributes
468 Verify.Graphics.Vty.Prelude
469 Verify.Graphics.Vty.Picture
470 Verify.Graphics.Vty.Image
471 Verify.Graphics.Vty.Span
473 build-depends: vty,
474 Cabal >= 1.20,
475 QuickCheck >= 2.7,
476 random >= 1.0 && < 1.2,
477 base >= 4 && < 5,
478 bytestring,
479 containers,
480 deepseq >= 1.1 && < 1.5,
481 mtl >= 1.1.1.0 && < 2.3,
482 text >= 0.11.3,
483 unix,
484 utf8-string >= 0.3 && < 1.1,
485 vector >= 0.7
488test-suite verify-crop-span-generation
489 default-language: Haskell2010
490 default-extensions: ScopedTypeVariables
492 type: detailed-0.9
494 hs-source-dirs: test
496 test-module: VerifyCropSpanGeneration
498 other-modules: Verify
499 Verify.Graphics.Vty.Attributes
500 Verify.Graphics.Vty.Prelude
501 Verify.Graphics.Vty.Picture
502 Verify.Graphics.Vty.Image
503 Verify.Graphics.Vty.Span
505 build-depends: vty,
506 Cabal >= 1.20,
507 QuickCheck >= 2.7,
508 random >= 1.0 && < 1.2,
509 base >= 4 && < 5,
510 bytestring,
511 containers,
512 deepseq >= 1.1 && < 1.5,
513 mtl >= 1.1.1.0 && < 2.3,
514 text >= 0.11.3,
515 unix,
516 utf8-string >= 0.3 && < 1.1,
517 vector >= 0.7
520test-suite verify-layers-span-generation
521 default-language: Haskell2010
522 default-extensions: ScopedTypeVariables
524 type: detailed-0.9
526 hs-source-dirs: test
528 test-module: VerifyLayersSpanGeneration
530 other-modules: Verify
531 Verify.Graphics.Vty.Attributes
532 Verify.Graphics.Vty.Prelude
533 Verify.Graphics.Vty.Picture
534 Verify.Graphics.Vty.Image
535 Verify.Graphics.Vty.Span
537 build-depends: vty,
538 Cabal >= 1.20,
539 QuickCheck >= 2.7,
540 random >= 1.0 && < 1.2,
541 base >= 4 && < 5,
542 bytestring,
543 containers,
544 deepseq >= 1.1 && < 1.5,
545 mtl >= 1.1.1.0 && < 2.3,
546 text >= 0.11.3,
547 unix,
548 utf8-string >= 0.3 && < 1.1,
549 vector >= 0.7
551test-suite verify-utf8-width
552 default-language: Haskell2010
553 default-extensions: ScopedTypeVariables
555 type: detailed-0.9
557 hs-source-dirs: test
559 test-module: VerifyUtf8Width
561 other-modules: Verify
563 build-depends: vty,
564 Cabal >= 1.20,
565 QuickCheck >= 2.7,
566 random >= 1.0 && < 1.2,
567 base >= 4 && < 5,
568 bytestring,
569 containers,
570 deepseq >= 1.1 && < 1.5,
571 mtl >= 1.1.1.0 && < 2.3,
572 text >= 0.11.3,
573 unix,
574 utf8-string >= 0.3 && < 1.1,
575 vector >= 0.7
577test-suite verify-using-mock-input
578 default-language: Haskell2010
579 default-extensions: ScopedTypeVariables
581 type: exitcode-stdio-1.0
583 hs-source-dirs: test
585 main-is: VerifyUsingMockInput.hs
587 build-depends: vty,
588 Cabal >= 1.20,
589 data-default >= 0.5.3,
590 QuickCheck >= 2.7,
591 smallcheck == 1.*,
592 quickcheck-assertions >= 0.1.1,
593 test-framework == 0.8.*,
594 test-framework-smallcheck == 0.2.*,
595 random >= 1.0 && < 1.2,
596 base >= 4 && < 5,
597 bytestring,
598 containers,
599 deepseq >= 1.1 && < 1.5,
600 microlens,
601 microlens-mtl,
602 mtl >= 1.1.1.0 && < 2.3,
603 stm,
604 terminfo >= 0.3 && < 0.5,
605 text >= 0.11.3,
606 unix,
607 utf8-string >= 0.3 && < 1.1,
608 vector >= 0.7
610 ghc-options: -threaded -Wall
612test-suite verify-config
613 default-language: Haskell2010
614 default-extensions: ScopedTypeVariables
616 type: exitcode-stdio-1.0
618 hs-source-dirs: test
620 main-is: VerifyConfig.hs
622 build-depends: vty,
623 Cabal >= 1.20,
624 data-default >= 0.5.3,
625 HUnit,
626 QuickCheck >= 2.7,
627 smallcheck == 1.*,
628 quickcheck-assertions >= 0.1.1,
629 test-framework == 0.8.*,
630 test-framework-smallcheck == 0.2.*,
631 test-framework-hunit,
632 random >= 1.0 && < 1.2,
633 base >= 4 && < 5,
634 bytestring,
635 containers,
636 deepseq >= 1.1 && < 1.5,
637 microlens,
638 microlens-mtl,
639 mtl >= 1.1.1.0 && < 2.3,
640 string-qq,
641 terminfo >= 0.3 && < 0.5,
642 text >= 0.11.3,
643 unix,
644 utf8-string >= 0.3 && < 1.1,
645 vector >= 0.7
647 ghc-options: -threaded -Wall