console-rs / console-rs/console
Setting the text alignment to center
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 144
- Avg merge
- 8h 24m
- Merged PRs (30d)
- 4
Description
Hi!
I am new to building interactive CLIs, so I am not sure of if this feature falls into the API area of console crate or in a TUI library like ratatui.
I want to print a string into the terminal with center alignment, does this is supported or will supported by this crate? I am asking it because I don't want to depend on the ratatui crate just for centering a text in the terminal.
Thanks in advance!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the console crate's public API and documentation to determine whether it already offers text alignment; the issue does not name a file, test, or entry point. Done means the crate's support for centering terminal text is clear, with any requested behavior and its usage documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100