The sneakyterm package

[Tags:gpl, library]

SneakyTerm gives you MonadTerminal which gives you two operations, tmRender to render a list of tiles, and tmCharEvent to wait for character input. A simple example:

 main = do
   let viewport = rectFromOriginAndDim (V2 0 0) (V2 80 25)
   runTerminal viewport $ do
     tmRender [Tile (V2 10 10) '@' (ColorPair Red Blue)]
     _ <- tmCharEvent
     return ()

This will render a red @ at column 11, line 11, with blue background.

Properties

Versions 0.1
Dependencies base (==4.7.*), classy-prelude, containers, lens, linear, mtl, ncurses, transformers [details]
License GPL-3
Copyright Copyright (C) 2014-2015 Philipp Middendorf
Author Philipp Middendorf
Maintainer pmidden@secure.mailbox.org
Stability Unknown
Category User Interfaces
Home page https://github.com/pmiddend/sneakyterm
Bug tracker https://github.com/pmiddend/sneakyterm/issues
Source repository head: git clone git://github.com/pmiddend/sneakyterm.git
Uploaded Mon Aug 10 20:02:46 UTC 2015 by pimiddy
Distributions NixOS:0.1
Downloads 115 total (4 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-02 [all 5 reports]

Modules

  • System
    • Console
      • SneakyTerm
        • System.Console.SneakyTerm.Color
        • System.Console.SneakyTerm.ColorPair
        • System.Console.SneakyTerm.MonadTerminal
        • System.Console.SneakyTerm.PointInt
        • System.Console.SneakyTerm.Rect
        • System.Console.SneakyTerm.Tile

Downloads

Maintainer's Corner

For package maintainers and hackage trustees