homepage: https://github.com/akazukin5151/ueberzug-hs
changelog-type: markdown
hash: 8001017d30c12a82e6b379d481b4bca58ed9d43c8212befd5a3cfcaceb6abce6
test-bench-deps:
  base: -any
  ueberzug: -any
maintainer: tsuiyikching@protonmail.com
synopsis: Haskell bindings for ueberzug to display images in the terminal
changelog: |
  # Changelog

  ## Version 0.1.0.0

  - Initial release
basic-deps:
  base: '>=4.7 && <5'
  process: '>=1.6.13.2 && <1.7'
all-versions:
- 0.1.0.0
author: Tsui Yik Ching
latest: 0.1.0.0
description-type: markdown
description: |
  # ueberzug-hs

  Haskell bindings for ueberzug to display images in the terminal

  Make sure ueberzug is installed in the system path.

  Note: ueberzug only works on Linux

  Port of [Ueberzug-rs](https://github.com/Adit-Chauhan/Ueberzug-rs/)

  ## Example

  Draw the example image for 2 seconds, then clear it and wait for 1 second before exiting

  ```hs
  import Control.Concurrent
  import Graphics.Ueberzug

  main = do
    let ub = newUeberzug
    -- `draw` returns a new Ueberzug object; use the new object in the future
    Right new_ub <-
      draw ub $ defaultUbConf
        { identifier = "75933779_p0"
        , path = "./test/75933779_p0.jpg"
        , x = 10
        , y = 2
        , width = Just 10
        , height = Just 10
        , scaler = Just FitContain
        }
    threadDelay 2000000

    clear new_ub "75933779_p0"
    threadDelay 1000000
  ```

  ## License

  MIT
license-name: MIT

Update from Hackage at 2022-03-14T22:03:28Z
Update from Hackage at 2022-03-14T22:03:28Z
