Skip to content

hanjoes/swift-termina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Termina

Terminal "character-based" rendering, driven by ANSI escape sequences. This library is free of Foundation.

Usage

var t = Termbo(width: 1, height: 1)
let lines = ["|", "\\", "-", "/"]
for i in 1 ... 100 {
    t.render(bitmap: [lines[i % lines.count]], to: stdout)
    usleep(10000)
}
t.clear(stdout) // use "t.end()" if you want to keep the rendered content

Demo

Quick Demo