Why my simple show / hide does not work #825
-
I have this simple code (I am new to rust, so sorry if something obvious is missed)
When I press Ctrl-C nothing happens. Not even the log line. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No idea. But there is an example demonstrating Ctrl+C handling here: https://github.com/gyscos/cursive/blob/main/cursive/examples/ctrl_c.rs. Maybe this will help? |
Beta Was this translation helpful? Give feedback.
-
Hi! I think the issue is that you attach the name to the TextArea directly, but you query it expecting to find it wrapped in a Also note that full_width and full_height will add their own wrappers. It may be easier to wrap things in this order:
Then the name will point to the HideableView you expect. |
Beta Was this translation helpful? Give feedback.
Hi!
I think the issue is that you attach the name to the TextArea directly, but you query it expecting to find it wrapped in a
HideableView
.Also note that full_width and full_height will add their own wrappers. It may be easier to wrap things in this order:
Then the name will point to the HideableView you expect.