#terminal #console #oma #pager #progress-bar #command-line-utilities #scroll

oma-console

Console and terminal emulator handling library used by oma

51 releases (24 breaking)

0.25.0 Dec 1, 2024
0.24.0 Nov 27, 2024
0.23.0 Nov 22, 2024
0.11.0 Mar 28, 2024
0.9.0 Nov 22, 2023

#321 in Command-line interface

Download history 541/week @ 2024-08-19 163/week @ 2024-08-26 355/week @ 2024-09-09 367/week @ 2024-09-16 405/week @ 2024-09-23 85/week @ 2024-09-30 12/week @ 2024-10-07 151/week @ 2024-10-14 18/week @ 2024-10-21 640/week @ 2024-10-28 574/week @ 2024-11-04 72/week @ 2024-11-11 410/week @ 2024-11-18 290/week @ 2024-11-25 90/week @ 2024-12-02

892 downloads per month
Used in 2 crates

MIT license

47KB
1K SLoC

oma-console

oma-console is a utility crate that provides console functionalities for oma

It offers modules for printing stylized messages, managing pagers, displaying progress bars, and handling terminal writing utilities.

Features

  • Print: Stylized message printer with support for prefixes and automatic line wrapping.
  • Pager: Terminal pager with scrolling and searching capabilities.

Modules

  • pager: Implements a terminal pager with the crossterm and ratatui crates.
  • pb: Implements numerous styles of progress bars with the indicatif crate.
  • writer: Implements a formatted message writer to the terminal.
  • print: Implements a formatted message logger with support for different logging levels (normal, debug, error, etc.).

Dependencies

~0–11MB
~127K SLoC