Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kelsey-sorrels/zaffre

A fast clojure console library
https://github.com/kelsey-sorrels/zaffre

clojure console lwjgl terminal tilesets

Last synced: about 2 months ago
JSON representation

A fast clojure console library

Awesome Lists containing this project

README

        

# Zaffre

## A fast Clojure library for emulating a terminal

Zaffre is fast console library for drawing characters to a screen.

Screenshot using 2-bit tileset by Muziak

## Features
* It's fast. Zaffre uses LWJGL and OpenGL to render characters as fast as possible.
* Unicode support (minus CJK code points)
* CP437 tileset support (eg: loading [Dwarf Fortress Wiki: Tileset repository](http://dwarffortresswiki.org/index.php/Tileset_repository))
* Cross-platform codebase
* Thread safe
* Multiple fonts
* Glyph stacking
* Non-character tiles ie: sprites
* Mix different font sizes

Screenshot using 16x16 Fantasy tileset by Jerom

## Not Features
* Effects
* Animation
* GUI control emulation

## Usage

Add the dependency to your project:

```clojure
[zaffre "0.4.0-SNAPSHOT"]
```

## Quickstart

Runs a little hello world terminal

```clojure
(ns examples.basic
(:require [zaffre.terminal :as zat]
[zaffre.glterminal :as zgl]
[zaffre.events :as zevents]
[zaffre.font :as zfont]
[zaffre.tilesets :as ztiles]
[zaffre.util :as zutil]
[clojure.core.async :as async :refer [

## More Examples

Run with

`lein run -m examples.basic`

or

`lein run -m examples.tileset`

etc.

Got to https://github.com/kelsey-sorrels/zaffre/tree/master/src/examples for more.

## License

Copyright © 2016 Kelsey Sorrels

Distributed under the MIT license.

## YourKit
![](https://www.yourkit.com/images/yklogo.png)

Many thanks to YourKit for providing this project with licenses of its profiler to help us improve performance!

YourKit supports open source projects with innovative and intelligent tools
for monitoring and profiling Java and .NET applications.
YourKit is the creator of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/),
[YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/) and
[YourKit YouMonitor](https://www.yourkit.com/youmonitor), tools for profiling Java and .NET applications.