Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the text alignment to center #193

Open
mominul opened this issue Nov 27, 2023 · 1 comment
Open

Setting the text alignment to center #193

mominul opened this issue Nov 27, 2023 · 1 comment

Comments

@mominul
Copy link

mominul commented Nov 27, 2023

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!

@mitsuhiko
Copy link
Collaborator

I wanted to add alignment helpers already before, but I could not come up with a good API for it without making a whole dynamic formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants