Giter Club home page Giter Club logo

nimbox's Introduction

Nimbox

Nimbox is a Rustbox-inspired termbox wrapper for Nim.

Nimbox uses an object-oriented style, making writing text-based user interfaces easy and intuitive.

Nimbox is still in development and may eat your laundry. You have been warned.

Installation

Nimbox can be installed through Nimble, Nim's package manager:

nimble install nimbox

nimbox's People

Contributors

dom96 avatar jonathanabennett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nimbox's Issues

Readme Inaccurate

The Installation method in the current README is incorrect. running nimble install nimbox downloads the notabug.org version, which currently does not work because of a type mismatch error. Either we need to change the way that this package is listed on nimble.directory or we need to rewrite the README.

256 Color Support

The code in nimbox/termbox.nim suggests that Nimbox supports 256 color. In addition, there is an OutputMode enum called out256 which suggests 256 color support.

But neither of the print functions in nimbox.nim support 256 colors. 1 requires no color, the other requires colors selected from the Color enum.

We should write a version of the print function which accepts 256 or which uses the color module for colors.

defer not supported in top level

When attempting to compile any of the examples under nim 0.20, you receive the following error:
Error: defer statement not supported at top level

Presumably, this is caused by the defer: nb.shutdown() present in all examples. According to the language manual, these should probably be try, finally statements when located at the top level.

If that is the preferred method, I will submit a pull request rewriting existing examples in that idiom, but it seems like that would be a rather large try block for any non-trivial program.

German Umlaut

Instead of a "German Umlaut" like "ä" I get "�". How can I fix that.

Thanks in advance

fatal error: termbox.h: No such file or directory

When attempting to nimbox, after installation through nimble, I am greeted with the following error:

Error: execution of an external compiler program 'gcc -c  -w  -I/home/ewpolly/.choosenim/toolchains/nim-0.19.0/lib -o /home/ewpolly/.cache/nim/MusicInfo_d/nimbox_nimbox.c.o /home/ewpolly/.cache/nim/MusicInfo_d/nimbox_nimbox.c' failed with exit code: 1

/home/ewpolly/.cache/nim/MusicInfo_d/nimbox_nimbox.c:11:10: fatal error: termbox.h: No such file or directory
 #include "termbox.h"
          ^~~~~~~~~~~
compilation terminated.

Is there anything which I need to additionally install?
I've tried install termbox from https://github.com/nsf/termbox using the waf scripts, and deleted ~/.cache/nim, however I still receive this issue.

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.