|0.2.2||Apr 23, 2020|
|0.2.1||Jul 14, 2019|
|0.2.0||Apr 26, 2019|
|0.1.5||Sep 10, 2018|
|0.1.2||May 25, 2018|
#88 in Command-line interface
4,386 downloads per month
Used in 22 crates (4 directly)
Concurrent cross-platform terminal interface, for Unix terminals and Windows console.
Provides a line-by-line terminal interface and a screen buffer interface.
mortal in your project, add the following to your
[dependencies] mortal = "0.2"
And the following to your crate root:
extern crate mortal;
mortal is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
Platform-independent terminal interface
Two distinct interfaces to operating system terminal devices are provided, each abstracting over the differences between Unix terminals and Windows console.
Terminal interface treats the terminal as a line-by-line
output device. Methods exist to add color and style attributes to text,
and to make relative movements of the cursor.
Screen interface treats the entire terminal window as a drawable
buffer. Methods exist to set the cursor position and to write text with
color and style attributes.
Each interface uses internal locking mechanisms to allow sharing of the terminal interface between threads while maintaining coherence of read/write operations.