#require #termion #scenes #multiple #apps #mode #raw

simple-terminal-app

A simple tool for creating terminal-based apps that require raw mode and multiple scenes

5 releases

0.1.1 Dec 18, 2021
0.1.0 Dec 18, 2021
0.0.4 Dec 11, 2021

#577 in Command-line interface

Download history 2/week @ 2024-02-25 4/week @ 2024-03-10 55/week @ 2024-03-31

59 downloads per month

MIT license

11KB
186 lines

Disclaimer: This crate is currently very early in development and probably nearly unusable for its use-case.

About

This crate aims to ease the pain of creating simple console applications that require raw-mode from the terminal. e.g. games, text-editors and such.

Uses the termion rust-crate.

Versions

0.1.1

Updated crates.

0.1.0

Pretty much everything has changed. Now scenes have update(...) methods that get called independently from user input, if one chooses to use it. Most functions no longer return a Result<> type any more.

0.0.4

Fixed a few issues: made scene methods get a mutable reference to self, now screen gets cleared initially upon launching app but it doesn't when do it automatically anymore when changing scenes.

0.0.3

Now re-exports only parts of termion, some important parts might still be missing. Reading stdin is no longer in a separate thread so that stdin isn't locked forever. Reworked State to ease use. Also removed the helper module from scene at least for now.

0.0.2

includes termion now in the package, since it's required for using the crate (for now).

0.0.1

initial release

Dependencies

~165KB