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

add a scrolling text widget #1503

Open
dankamongmen opened this issue Apr 4, 2021 · 0 comments
Open

add a scrolling text widget #1503

dankamongmen opened this issue Apr 4, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request hax0rs-wanted looking to hack on notcurses? try these

Comments

@dankamongmen
Copy link
Owner

Add ncscrolltext or something, which has some fixed geometry, and an associated body of text (not necessarily larger than the widget area, but presumably so). If it fits wholly within the widget, lay the text out with ncplane_puttext() for nice word breaking etc. otherwise, scroll the text at some configurable rate.

the implementation is easy. the hard part is driving it in a thread-safe manner, which almost has to be done from the client context. together with how fade() needs be done, maybe we need a ncfoo_offer_clocktick() or something. or maybe not. think this through and come up with a sensible design.

maybe we don't accept the time as a parameter, and just offer the function ncscrolltext_advance(), and the user just has to explicitly call that via whatever timing mechanism they like.

@dankamongmen dankamongmen added documentation Improvements or additions to documentation enhancement New feature or request hax0rs-wanted looking to hack on notcurses? try these labels Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request hax0rs-wanted looking to hack on notcurses? try these
Projects
None yet
Development

No branches or pull requests

1 participant