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

Highlighting support #21

Open
peterbrittain opened this issue Feb 23, 2016 · 2 comments
Open

Highlighting support #21

peterbrittain opened this issue Feb 23, 2016 · 2 comments
Milestone

Comments

@peterbrittain
Copy link
Owner

I've just found out about https://github.com/chjj/blessed. This is a node.js library that aims to provide a similar high-level API to terminals as asciimatics. It has some neat extra features that it would be good to add.

The most obvious is the background colour highlighting that it puts on the main page demo. This provides a mechanism for painting the background with a new solid colour or a 50% linear combination (of the RGB colour tuples) of the existing BG colour and the highlight colour.

@peterbrittain
Copy link
Owner Author

Added basic highlight() method to Screen. Still need to add blending support, though. Looks like I should go for a weighted approach - see http://stackoverflow.com/questions/1847092/given-an-rgb-value-what-would-be-the-best-way-to-find-the-closest-match-in-the-d

@peterbrittain
Copy link
Owner Author

The nature of this highlighting is that to be fully effective, I need to resolve the full Screen refresh tracked in #24. In the meantime, it is possible to force redrawing of the Screen by explicitly clearing it for any effects/widgets that use this feature, but this is sub-optimal to say the least.

@peterbrittain peterbrittain added this to the V2.0 milestone Jul 19, 2016
@peterbrittain peterbrittain removed their assignment Jul 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant