editline-d 0.0.1

binding of libedit


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

editline-d

binding for libedit(editline) library made by dstep

Usage

"dependencies": {
  "editline-d": "~>0.0.1"
}
import std.stdio;
import std.string;
import editline;

void main()
{
  while (true) {
    auto line = readline(">");
    if (line is null) {
      break;
    }
    add_history(line);

    writeln(line.fromStringz());
  }
  clear_history();
}

LISENCE

MIT

Authors:
  • theoldmoon0602
Dependencies:
none
Versions:
0.0.1 2018-Oct-14
~master 2018-Oct-14
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 15 downloads total

Score:
0.3
Short URL:
editline-d.dub.pm