linenoize
linenoize copied to clipboard
A port of linenoise to zig
termios and tc{get,set}attr moved from std.os to std.posix
Linenoise has added an asynchronous API, about 8 months ago: https://github.com/antirez/linenoise#asyncrhronous-api It would be awesome to have this in linenoize
I am using this library in a program that needs to do user interaction on stderr, in order to pipe useful data from stdout. Would it be possible to configure...
Is it possible to provide completions on every keystroke?
This library doesn't show up at https://zig.pm/ You can add it by submitting it to https://github.com/ziglibs/repository, or at least adding `zig-package` to the GitHub tags.
The following won't work: ```zig pub fn main() !void { const allocator = std.heap.page_allocator; var ln = Linenoise.init(allocator); defer ln.deinit(); const stdout_file = std.io.getStdOut().writer(); var bw = std.io.bufferedWriter(stdout_file); const stdout...