BSD-3-Clause licensed by Mitchell Dalvi Rosen
This version can be pinned in stack with:termbox-2.0.0.1@sha256:878356270fef243a1dc1b614701f170940c7eb5a168d6da34daaebc6f1b73511,2820

Module documentation for 2.0.0.1

Used by 2 packages in nightly-2024-11-25(full list with versions):

This package provides a high-level wrapper around termbox, a simple C library for writing text-based user interfaces: https://github.com/termbox/termbox

See also the higher-level interfaces:

And the lower-level interfaces:

Changes

[2.0.0.1] - November 14, 2023

  • Update to termbox-bindings-hs-1.0.0

[2.0.0] - November 5, 2023

  • Overhaul Cell+Scene API; now it’s Image+Scene
  • Add Eq instance for Color
  • Add Semigroup/Monoid instances for Pos
  • Fix bug that left cursor shown when it should be hidden

[1.1.0.2] - October 15, 2023

  • Support GHC 9.8.1

[1.1.0.1] - December 1, 2022

  • Make char applied to a wide character result in a space instead of nothing

[1.1.0] - November 3, 2022

  • Split off Elm Architecture wrapper into termbox-tea package, and expose run/initialize/finalize instead
  • Rename Mouse to MouseButton, rename its constructors, and add Mouse type (MouseButton + Pos)

[1.0.0] - October 25, 2022

  • Rework run; add Program record of callbacks
  • Add user events to Event type
  • Overhaul Attr+Cell+Cells+Cursor API; now it’s Cell+Color+Scene
  • Rename set to cell
  • Add combinator to brighten basic colors (bright)
  • Add combinator for miscellaneous colors (color)
  • Add combinator for monochrome colors (gray)
  • Add Pos type
  • Add Size type
  • Remove Termbox.Internal module (see packages termbox-bindings-hs or termbox-bindings-c instead)
  • Fix off-by-one error in named colors (black, etc) (thanks @seagreen)
  • Support GHC 9.4
  • Drop support for GHC < 8.8

[0.3.0] - September 20, 2020

  • Add Cells and Cursor types
  • Export Termbox.Internal module that roughly corresponds to the C library
  • Add a few arguments to the action provided to run
  • Make run throw InitErrors as IO exceptions
  • Reset output mode to “normal” on shutdown to work around a small bug in termbox.c that retains the output mode across separate invocations of init/shutdown
  • Change type of set to construct a Cells rather than an IO ()
  • Change a few keys into pattern synonyms because they overlap
  • Remove the alt modifier field from KeyEvent
  • Remove setCursor, hideCursor, clear, flush, getCells, getSize, poll, run_
  • Remove InputMode, MouseMode, and OutputMode, providing sane defaults instead
  • Remove build dependency on c2hs
  • Remove support for GHC < 8.2

[0.2.0.1] - June 27, 2020

  • Bump base upper bound

[0.2.0] - June 21, 2019

  • Add getCells function
  • Add run function
  • Rename size to getSize
  • Rename main to run_ and return errors as an Either instead of throwing
  • Make Attr’s Semigroup instance right-biased instead of left-biased
  • Make Attr’s Num instance total
  • Remove buffer function

[0.1.0] - July 18, 2018

  • Initial release