5 unstable releases

0.3.0-alpha.0 Mar 2, 2025
0.2.2 Feb 9, 2025
0.2.0 Oct 25, 2024
0.1.1 Sep 21, 2024

#1146 in Command-line interface

Download history 6/week @ 2024-11-20 9/week @ 2024-12-04 25/week @ 2024-12-11 224/week @ 2025-02-05 29/week @ 2025-02-12 3/week @ 2025-02-19 157/week @ 2025-02-26 18/week @ 2025-03-05

216 downloads per month
Used in tui-widgets

MIT/Apache

16KB
255 lines

Tui-cards

A simple library to render playing cards in a terminal using tui-rs.

Example

use tui_cards::{Card, Rank, Suit};

let card = Card::new(Rank::Ace, Suit::Spades);
frame.render_widget(&card, area);

Demo

cargo run --example card

demo

TODO

  • work out bug with background of cell after the suit character
  • more configuration options

License

Copyright (c) Josh McKinney

This project is licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Dependencies

~8–14MB
~162K SLoC