Giter Site home page Giter Site logo

termbox_next's Introduction

Termbox

Termbox was a promising Text User Interface (TUI) library. Unfortunately, its original author changed his mind about consoles and despite the community's efforts to keep the library's development going, preferred to let it die. Before it happened, some people already noticed the robustness of the initial architecture became compromised in a nonsensical refactoring frenzy. Now, the author refuses to merge features like true-color support, invoking some spurious correlations we will discuss no further.

The new Termbox-Next

This fork was made to restore the codebase to its original quality (before 66c3f91) while providing all the functionnalities of the current implementation. This was achieved by branching at a2e217f and cherry-picking all the commits up to d63b83a if they weren't harmful. This version of Termbox-Next contains some optimizations from that point forward.

Changes

A lot of things changed during the process:

  • waf, the original build system, was completely removed from the project and replaced by make.
  • anything related to python was removed as well
  • some personal optimizations to speed up rendering

Getting started

Termbox's interface only consists of 12 functions:

tb_init() // initialization
tb_shutdown() // shutdown

tb_width() // width of the terminal screen
tb_height() // height of the terminal screen

tb_clear() // clear buffer
tb_present() // sync internal buffer with terminal

tb_put_cell()
tb_change_cell()
tb_blit() // drawing functions

tb_select_input_mode() // change input mode
tb_peek_event() // peek a keyboard event
tb_poll_event() // wait for a keyboard event

See src/termbox.h header file for full detail.

TL;DR

make to build a static version of the lib under bin/termbox.a

termbox_next's People

Contributors

nsf avatar morganpeterson avatar nullgemm avatar rofl0r avatar robem avatar thinkyfish avatar jonasp avatar adsr avatar techtonik avatar george-b avatar galdor avatar sru avatar osa1 avatar klardotsh avatar cellularmitosis avatar shayneoatnorwood avatar masukomi avatar dcat avatar zyedidia avatar utkarshkukreti avatar tzador avatar sgbeal avatar ssharunas avatar ei-grad avatar waywardmonkeys avatar sjrct avatar dduan avatar g0xa52a2a avatar fouric avatar akkartik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.