input/input_options.rs
1use bitflags::bitflags;
2
3bitflags! {
4 /// Represents options for parsing input events.
5 pub struct InputOptions: u8 {
6 /// Enable movement input handling
7 const MOVEMENT = 0b0000_0001;
8 /// Enable terminal resize input handling
9 const RESIZE = 0b0000_0010;
10 /// Enable undo and redo input handling
11 const UNDO_REDO = 0b0000_0100;
12 /// Search handling
13 const SEARCH = 0b0000_1000;
14 /// Help input handling
15 const HELP = 0b0001_0000;
16 }
17}