ansi-terminal-game: sdl-like functions for terminal applications, based on ansi-terminal

[ game, gpl, library ] [ Propose Tags ]

Library which aims to replicate standard 2d game functions (blit, ticks, timers, etc.) in a terminal setting. Aims to be cross compatible (based on "ansi-terminal", no unix-only dependencies), practical. See examples folder for some minimal programs. A full game: venzone.

[Skip to Readme]


[Index] [Quick Jump]


Automatic Flags

builds examples


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log changes.txt
Dependencies ansi-terminal (>=0.8 && <0.11), ansi-terminal-game, array (>=0.5 && <0.6), base (>=4 && <5), bytestring (>=0.10 && <0.11), cereal (>=0.5 && <0.6), clock (>=0.7 && <0.9), exceptions (>=0.10 && <0.11), linebreak (>=1.0 && <1.1), mintty (>=0.1 && <0.2), mtl (>=2.2 && <2.3), QuickCheck (>=2.13 && <2.14), random (>=1.1 && <1.2), split (>=0.2 && <0.3), temporary (>=1.3 && <1.4), terminal-size (>=0.3 && <0.4), timers-tick (>0.4.2 && <0.5) [details]
License GPL-3.0-only
Copyright © 2017-2019 Francesco Ariis
Author Francesco Ariis
Revised Revision 1 made by fffaaa at 2019-12-08T23:58:38Z
Category Game
Home page
Source repo head: darcs get
Uploaded by fffaaa at 2019-12-08T03:44:42Z
Distributions LTSHaskell:, NixOS:, Stackage:
Executables alone-playback, alone
Downloads 9519 total (29 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-12-08 [all 1 reports]

Readme for ansi-terminal-game-

[back to package description]

`ansi-terminal-game` is a library for creating games in a terminal setting.


- be cross platform (linux/win/mac). If you plan to have your executable
  unix only, I invite you to check brick [1] or other, more expressive
- be simple: no curses/ncurses/pdcurses/etc. dependencies, all
  functionality built on a standard input / ANSI terminal base.



- run the basic example with `cabal new-run -f examples alone`;
- check the source in `examples/Alone.hs`;
- open the 'Terminal.Game' haddock documentation (start reading from

A full game can be found at:


For any feedback or report, contact me at: