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

Feature request: Ability to choose cell anchors #86

Closed
silversquirl opened this issue Sep 18, 2016 · 2 comments
Closed

Feature request: Ability to choose cell anchors #86

silversquirl opened this issue Sep 18, 2016 · 2 comments

Comments

@silversquirl
Copy link

I'd like the ability to choose how to pack my cells into the given space when using tb_blit.

Specifically, I'd like to be able to pack them into the left top, left bottom (default), right top, right bottom and possibly left center, right center, center top, center bottom and center.

Sorry if this is already possible.

@nsf
Copy link
Owner

nsf commented Sep 18, 2016

Read comments here:
https://github.com/nsf/termbox/blob/master/src/termbox.h#L216-L229

tb_blit is deprecated in favor of direct back buffer access via tb_cell_buffer. You can now implement any copying function you want yourself.

See implementations also: https://github.com/nsf/termbox/blob/master/src/termbox.c#L246-L283

@silversquirl
Copy link
Author

Ahh, thanks, I didn't realise tb_blit was deprecated, but that does explain why I was unable to find it in any examples ;)

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