#bindings #tui

nightly newt

Rust bindings for the Newt console UI library

14 releases (5 breaking)

✓ Uses Rust 2018 edition

new 0.6.0 Sep 15, 2019
0.5.4 Aug 5, 2019
0.5.3 Jul 29, 2019
0.2.2 Oct 21, 2018

#31 in Unix APIs

Download history 19/week @ 2019-06-02 12/week @ 2019-06-09 22/week @ 2019-06-16 157/week @ 2019-06-23 56/week @ 2019-06-30 29/week @ 2019-07-07 4/week @ 2019-07-14 42/week @ 2019-07-21 24/week @ 2019-07-28 61/week @ 2019-08-04 29/week @ 2019-08-11 1/week @ 2019-08-18 172/week @ 2019-08-25 58/week @ 2019-09-01 23/week @ 2019-09-08

226 downloads per month

LGPL-2.0-only

150KB
2.5K SLoC

newt-rs

Rust bindings for the Newt console UI library.

ChangeLog | API Docs | crates.io

This crate provides bindings to Red Hat, Inc.'s Newt console UI library. Newt is a small and simple to use UI library providing widgets and basic stacked window management for console applications.

The majority, if not all of Newt's functionality has been implemented. Although some features currently require the nightly build of the Rust compiler.

Usage

Include newt as a dependency of in your Cargo.toml file as follows.

[dependencies]
newt = "0.6"

The library API is currently subject to change and there are likely to be breaking changes between minor versions.

Features

static feature

Enabling the static feature will force the newt-sys dependency to be built against its included libraries statically rather than dynamically against local system libraries if they're available.

It can be enabled in your Cargo.toml file as follows.

[dependencies]
newt = { version = "0.6", features = ["static"] }

asm feature

Some library functions such as windows::win_menu(), windows::win_entries(), and Grid related functions require the nightly build of the Rust compiler and the newt asm feature to be enabled. These are currently only available on the x86 and x86_64 architectures.

Enable the feature as follows in your Cargo.toml file.

[dependencies]
newt = { version = "0.6", features = ["asm"] }

LICENSE

Copyright (C) 2018,2019 Robert Gill <locke@sdf.lonestar.org>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Dependencies

~4MB
~35K SLoC