🍞 scone - Helps you build portable CLI applications
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
docs
examples
extra
source/scone
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
dub.sdl
scone.sublime-project

README.md

🍞 scone

Create cross-platform CLI applications with ease

Super simple example

import scone;

void main() {
  window.title("example");
  window.resize(33, 20);

  bool run = true;
  while(run) {
    foreach(input; window.getInputs()) {
      // if CTRL+C is pressed
      if(input.key == SK.c && input.hasControlKey(SCK.ctrl)) {
        run = false;
      }
    }

    window.clear();
    window.write(
      12, 9,
      Color.yellow.foreground, "Hello ",
      Color.red.foreground, Color.white.background, "World"
    );
    window.print();
  }
}

Cross-platform input/output demo

    

To get the hang of scone you take a look at the wiki, or you could dive straight into the rather simple examples

Features

  • Display text and colors
  • Recieve keyboard input
  • Cross-platform

Install with dub

/// dub.json
"dependencies": {
    "scone": "~>2.1.0",
    ...
}
/// dub.sdl
dependency "scone" version="~>2.1.0"

Projects using scone

Resources