ueberzug: Haskell bindings for ueberzug to display images in the terminal

[ graphics, library, mit ] [ Propose Tags ]

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

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

See the README for more info


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), process (>=1.6.13.2 && <1.7) [details]
License MIT
Copyright 2022 Tsui Yik Ching
Author Tsui Yik Ching
Maintainer tsuiyikching@protonmail.com
Category Graphics
Home page https://github.com/akazukin5151/ueberzug-hs
Bug tracker https://github.com/akazukin5151/ueberzug-hs/issues
Source repo head: git clone https://github.com/akazukin5151/ueberzug-hs
Uploaded by yctsui at 2022-03-14T21:54:31Z
Distributions
Downloads 130 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
All reported builds failed as of 2022-03-14 [all 1 reports]

Readme for ueberzug-0.1.0.0

[back to package 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

Example

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

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