Questions tagged [rust-cursive]

3 questions
3
votes
0 answers

Custom type in SelectView (cursive)

I have a struct called ArticlePreview. It contains a title and a description. Now I want to have a SelectView showing these items, so the user can choose one. When I use the normal .add_item(label, type) function, the SelectView only displays one…
Builditluc
  • 353
  • 1
  • 7
2
votes
0 answers

Proper way to update a TextView in Rust's Cursive library

I'm currently working on writing up a tui for a server application in a personal project, and I picked the cursive library to do it. I have run into a problem with a component of my application that is supposed to serve as the server's console…
Katherine1
  • 195
  • 1
  • 2
  • 14
2
votes
1 answer

How to process events in cursive without implementing a View

I am writing an application with a cursive GUI, and I would like to do certain things when the user presses certain keys. For example, when using a TableView I would like to perform different actions when the user has selected a row and presses a…
palako
  • 3,342
  • 2
  • 23
  • 33