mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-01 22:53:37 +03:00
separate examples to separate package. add build_examples script for quick testing
This commit is contained in:
parent
4eb85ed0ed
commit
d9cf8b9252
14
CHANGELOG
14
CHANGELOG
@ -26,22 +26,22 @@
|
||||
* the default amount of time between ESC and a subsequent character that causes VTY to
|
||||
interpret the input as "ESC" then the character, versus some special key, has been
|
||||
increased to 4000 microseconds; 4 milliseconds.
|
||||
* examples optionally installed, using the --with-examples, with library:
|
||||
* examples moved to vty-examples package. See test directory for cabal file.
|
||||
* vty-interactive-terminal-test
|
||||
* interactive test. Useful for building a bug report for vty's author.
|
||||
* tests/interactive_terminal_test.hs
|
||||
* test/interactive_terminal_test.hs
|
||||
* vty-event-echo
|
||||
* view a input event log for vty. Small example of interacting with user.
|
||||
* tests/EventEcho.hs
|
||||
* view a input event log for vty. Example of interacting with user.
|
||||
* test/EventEcho.hs
|
||||
* vty-rouge
|
||||
* A bad rouge-like game. Go from the entrance to exit. Ooooh. Small example of layers
|
||||
* A bad rouge-like game. Go from the entrance to exit. Example of layers
|
||||
and image build operations.
|
||||
* tests/Rouge.hs
|
||||
* test/Rouge.hs
|
||||
* vty-benchmark
|
||||
* benchmarks vty. A series of tests that push random pictures to the terminal. The
|
||||
random pictures are generated using QuickCheck. The same generators used in the
|
||||
automated tests.
|
||||
* tests/benchmark.hs
|
||||
* test/benchmark.hs
|
||||
|
||||
4.7.0.0
|
||||
* API changes:
|
||||
|
3
build_examples
Executable file
3
build_examples
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cabal install
|
||||
(cd test && cabal install)
|
108
test/vty-examples.cabal
Normal file
108
test/vty-examples.cabal
Normal file
@ -0,0 +1,108 @@
|
||||
name: vty-examples
|
||||
version: 5.0.0
|
||||
license: BSD3
|
||||
license-file: ../LICENSE
|
||||
author: AUTHORS
|
||||
maintainer: Corey O'Connor (coreyoconnor@gmail.com)
|
||||
homepage: https://github.com/coreyoconnor/vty
|
||||
category: User Interfaces
|
||||
synopsis: Examples programs using the vty library.
|
||||
description:
|
||||
vty is terminal GUI library in the niche of ncurses. It is intended to be easy to use, have no
|
||||
confusing corner cases, and good support for common terminal types.
|
||||
.
|
||||
vty-interactive-terminal-test - interactive test. Useful for building a bug report for vtys author.
|
||||
vty-event-echo - view a input event log for vty. Example of interacting with user.
|
||||
vty-rouge - A bad rouge-like game. Go from the entrance to exit. Example of layers
|
||||
vty-benchmark - benchmarks vty. A series of tests that push random pictures to the terminal.
|
||||
.
|
||||
© Corey O'Connor; BSD3 license.
|
||||
cabal-version: >= 1.18.0
|
||||
build-type: Simple
|
||||
|
||||
executable vty-interactive-terminal-test
|
||||
main-is: interactive_terminal_test.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
bytestring,
|
||||
containers,
|
||||
deepseq >= 1.1 && < 1.4,
|
||||
ghc-prim,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
parsec >= 2 && < 4,
|
||||
string-qq,
|
||||
terminfo >= 0.3 && < 0.4,
|
||||
text >= 0.11.3,
|
||||
unix,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-event-echo
|
||||
main-is: EventEcho.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
array >= 0.4 && < 2.0,
|
||||
bytestring,
|
||||
containers,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
text >= 0.11.3,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-rouge
|
||||
main-is: Rouge.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
array >= 0.4 && < 2.0,
|
||||
bytestring,
|
||||
containers,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
random >= 1.0 && < 2.0,
|
||||
text >= 0.11.3,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-benchmark
|
||||
main-is: benchmark.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
bytestring,
|
||||
Cabal == 1.18.*,
|
||||
containers,
|
||||
deepseq >= 1.1 && < 1.4,
|
||||
ghc-prim,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
parsec >= 2 && < 4,
|
||||
QuickCheck >= 2.4,
|
||||
random == 1.0.*,
|
||||
string-qq,
|
||||
terminfo >= 0.3 && < 0.4,
|
||||
text >= 0.11.3,
|
||||
unix,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
108
vty.cabal
108
vty.cabal
@ -37,7 +37,6 @@ data-files: README.md,
|
||||
|
||||
library
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
build-depends: base >= 4 && < 5,
|
||||
bytestring,
|
||||
containers,
|
||||
@ -540,110 +539,3 @@ test-suite verify-using-mock-input
|
||||
|
||||
ghc-options: -threaded -Wall
|
||||
|
||||
executable vty-interactive-terminal-test
|
||||
main-is: interactive_terminal_test.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
hs-source-dirs: test
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
bytestring,
|
||||
containers,
|
||||
deepseq >= 1.1 && < 1.4,
|
||||
ghc-prim,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
parsec >= 2 && < 4,
|
||||
string-qq,
|
||||
terminfo >= 0.3 && < 0.4,
|
||||
text >= 0.11.3,
|
||||
unix,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-event-echo
|
||||
main-is: EventEcho.hs
|
||||
hs-source-dirs: test
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
array >= 0.4 && < 2.0,
|
||||
bytestring,
|
||||
containers,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
text >= 0.11.3,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-rouge
|
||||
main-is: Rouge.hs
|
||||
hs-source-dirs: test
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
array >= 0.4 && < 2.0,
|
||||
bytestring,
|
||||
containers,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
random >= 1.0 && < 2.0,
|
||||
text >= 0.11.3,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
executable vty-benchmark
|
||||
main-is: benchmark.hs
|
||||
|
||||
default-language: Haskell2010
|
||||
default-extensions: ScopedTypeVariables
|
||||
|
||||
hs-source-dirs: test
|
||||
|
||||
build-depends: vty,
|
||||
base >= 4 && < 5,
|
||||
bytestring,
|
||||
Cabal == 1.18.*,
|
||||
containers,
|
||||
deepseq >= 1.1 && < 1.4,
|
||||
ghc-prim,
|
||||
lens,
|
||||
mtl >= 1.1.1.0 && < 2.2,
|
||||
parallel >= 2.2 && < 3.3,
|
||||
parsec >= 2 && < 4,
|
||||
QuickCheck >= 2.4,
|
||||
random == 1.0.*,
|
||||
string-qq,
|
||||
terminfo >= 0.3 && < 0.4,
|
||||
text >= 0.11.3,
|
||||
unix,
|
||||
utf8-string >= 0.3 && < 0.4,
|
||||
vector >= 0.7
|
||||
|
||||
-- ControlTable.hs
|
||||
-- HereDoc.hs
|
||||
-- Test.hs
|
||||
-- Test2.hs
|
||||
-- Verify.hs
|
||||
-- Verify/Data/Terminfo/Parse.hs
|
||||
-- Verify/Graphics/Vty/Attributes.hs
|
||||
-- Verify/Graphics/Vty/DisplayRegion.hs
|
||||
-- Verify/Graphics/Vty/Image.hs
|
||||
-- Verify/Graphics/Vty/Picture.hs
|
||||
-- Verify/Graphics/Vty/Span.hs
|
||||
-- vty_inline_example.hs
|
||||
-- vty_issue_18.hs
|
||||
-- yi_issue_264.hs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user