Git Product home page Git Product logo

libsc's Introduction

libsc

This is some sort of lightweight 'libncurses' mostly made (so far) to display tables and such. Only 'documentation' so far is the example programs. It is pretty simple tho.

The library 'compiles' itself as a single header file sc.h OR, as a static/dynamic library. the single file is inspired by the stb_.h* files, and are quite handy to make tools with less dependencies.

The static/dyn libraries are probably better for debugging, and for full install where size of the binary matters.

What works

  • printf like
  • 'goto' X,Y
  • windows and sub windows
  • 'boxes' square and rounded
  • UTF8 output
  • VT100 attribute parsing, and 256 colors in/out
  • "Rendering" and count lines
  • "Update" current version on screen, ie move cursor back and redisplay
  • Single key input, with timeout
  • (sub) Window text justification

TODO:

  • 'diff' one output with the previous one
  • UTF8 input
  • vt100 RGB support?
  • Add some sort of table and column support

Notes:

  • You need tcc (Fabrice Bellard tiny C runtime) to build sc.h. If you don't know about tcc, you should!

sc_cpu

libsc's People

Contributors

buserror 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.