#bindings #tui


Rust bindings for the Newt console UI library

21 releases

0.6.8 May 4, 2022
0.6.7 Apr 1, 2021
0.6.5 Mar 17, 2021
0.6.4 Jul 10, 2020
0.2.2 Oct 21, 2018

#124 in Command-line interface

Download history 1/week @ 2023-06-07 8/week @ 2023-06-14 29/week @ 2023-06-21 43/week @ 2023-06-28 5/week @ 2023-07-05 2/week @ 2023-07-12 5/week @ 2023-07-19 10/week @ 2023-07-26 4/week @ 2023-08-02 4/week @ 2023-08-09 25/week @ 2023-08-16 23/week @ 2023-08-23 4/week @ 2023-08-30 51/week @ 2023-09-06 6/week @ 2023-09-13 4/week @ 2023-09-20

66 downloads per month


2.5K SLoC


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.


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

newt = "0.6"

The library API is currently subject to change and there are likely to be breaking changes between minor versions. Requires Rust 1.59 for inline assembly functions on the supported architectures (x86 and x86_64).


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.

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.

version  = "0.6"
features = ["asm"]


Copyright (C) 2018-2020 Robert Gill <rtgill82@gmail.com>

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


~53K SLoC