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

center/width options #13

Open
alembiq opened this issue Apr 9, 2024 · 1 comment
Open

center/width options #13

alembiq opened this issue Apr 9, 2024 · 1 comment

Comments

@alembiq
Copy link

alembiq commented Apr 9, 2024

Hello,
Would it be possible to add options for centring the output on a target width?
In the past, I was using figlet for showing me the hostname after login. figurine has much more excellent outputs, but I'm missing the option to have it centred in the terminal

Thank you

@arsham
Copy link
Owner

arsham commented Apr 21, 2024

Hi, I am using this to render the text and I don't think it supports either. Unfortunately calculating the width is not possible before the render is finished, unless adding a buffer layer before printing to the final writer.

If you have any recommendations I am happy to discuss this to come up with an action plan.

Cheers!

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