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
- Registered by theoldmoon0602
- 0.0.1 released 6 years ago
- theoldmoon0602/editline-d
- MIT
- Copyright © 2018, theoldmoon0602
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.1 2018-Oct-14 ~master 2018-Oct-14 - 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