GithubHelp home page GithubHelp logo

happy-ferret / emcurses Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rhaberkorn/emcurses

0.0 2.0 0.0 524 KB

Emscripten port of Public Domain Curses (PDCurses): Terminate your browser!

Makefile 6.65% M4 0.73% C 80.23% HTML 0.43% JavaScript 9.96% Shell 0.90% Objective-C 1.10%

emcurses's Introduction

EMCurses: Terminate your Browser!

EMCurses is a port of PDCurses to HTML/Javascript. It requires Emscripten and can be linked to other applications compiled with Emscripten. It is not merely PDCurses/SDL compiled with Emscripten - which cannot be done easily anyway - but a distinct port that uses the termlib Javascript library for output.

In essence, EMCurses helps you in porting your favourite terminal-based applications to the Web platform; or in designing Web pages in the environment you are accustomed to: the terminal and C programming language.

EMCurses is a work in progress and only a quick hack so far. It's already functional, though.

Installation

cd emscripten/
emmake make

This will produce a libpdcurses.so. When linking it with a Curses application, you should preload termlib.js. For example, the PDCurses rain.c example is compiled/linked as follows:

emcc -I.. -o rain.js rain.c --pre-js termlib.js libpdcurses.so

See e.g. rain.html for an example of embedding an EMCurses application into a Webpage.

emcurses's People

Contributors

rhaberkorn avatar

Watchers

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