3
11
Fork
You've already forked anyline
6
No description
  • Zig 99%
  • Shell 0.7%
  • C 0.3%
2026年05月03日 20:43:44 -05:00
include included lib header 2025年09月03日 07:41:12 -05:00
src updated Windows.zig for 0.16.0, updated c_bindings.zig to not use Environ.Map 2026年05月03日 20:00:01 -05:00
.gitignore clean up 2026年01月06日 07:27:12 -06:00
.inputrc updated inputrc handling 2026年02月15日 16:20:53 -06:00
build.zig fixed error when building ReleaseSafe for Windows 2026年05月03日 20:43:44 -05:00
build.zig.zon bump version to 0.6.0 2026年05月03日 20:29:21 -05:00
LICENSE Added MIT license 2025年09月03日 20:56:59 -05:00
README.md updated README.md to reflect discovered bug with iTerm2 and MacOS Terminal 2026年05月03日 20:20:52 -05:00
RELEASE.md enriched RELEASE.md, disabled inputrc 2026年03月01日 10:57:38 -06:00
release.sh added release script 2025年10月20日 20:18:28 -05:00

Anyline

Anyline is a line processing library intended to be a drop-in replacement for GNU Readline. Anyline leverages Zig's cross compilation toolchain to bring the library to not only Unix, but also Windows.

Development Status

Anyline is a work in progress. More features and platforms will be added. Keep an eye on the releases for more details.

Installation

Build from source

Firstly, you need to install Zig 0.15.2. Then, zig build install will produce a static library at zig-out/lib and a header file at zig-out/include.

Add as a Zig dependency

First, update your build.zig.zon:

zig fetch --save https://codeberg.org/TheShinx317/anyline/archive/v0.5.0.tar.gz

Next, add this snippet to your build.zig script:

const anyline_dep = b.dependency("anyline", .{
 .target = target,
 .optimize = optimize,
});
your_module.addImport("anyline", anyline_dep.module("anyline"));

Supported platforms

Operating System Architecture Terminal Emulator Shell
Windows 11 x86_64 Microsoft Terminal PowerShell 7
Linux x86_64 Ghostty, GNOME Fish, Bash
MacOS aarch64 Ghostty Fish, Zsh
FreeBSD x86_64 XFCE Terminal Fish, Sh