Git Product home page Git Product logo

console_graphics's Introduction

Library for working with console

This library can be used to create application with console UI. It supports:

  • colors
  • text positioning
  • keyboard events handling

Implementation uses:

  • conio.h and wincon.h on Windows
  • ncurses.h on Unix-based OS

Using

Just copy console.h and console.c to your project and use them:

#include "console.h"

That's all for Windows.

On Unix-based OS you should also have ncurses library installed.

For example, use apt-get on Linux:

apt-get install libncurses5-dev

Or use your favourite package manager on your favourite OS.

After this add -lncurses to gcc options of your project.

Example

There is an example.c which can be useful to understand using of this library.

screenshot

To build and run on Windows just compile all files together.

On Unix-based OS it's easy too:

make && ./example

Feedback

This library was inspired by Alexey Nikitin and developed together with Ivan Novikov aka NIA.

Any feedback is welcome! Open pull request or email to [email protected].

Copyright © 2013 Vladimir Parfinenko, released under the MIT license.

console_graphics's People

Contributors

cypok avatar be9 avatar nia avatar

Watchers

James Cloos avatar Thumssy P Nazar avatar

Forkers

sruthyrachel

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.