Cursive - custom views

I'm using Cursive to develop tui application. I need to create a custom view for the app, is there any guide to help me develop one? maybe some small example?


Also, when I'm using LinearLayout to draw something, how can I specify sizes how much each component should take the screen area?

For custom view, perhaps checking the source of cursive view implementations are the best.

For specifying sizes, I think this is what you need Resizable in cursive::traits - Rust.

1 Like