p2p_chat/ui/log_mode/mod.rs
1//! This module defines the log mode functionality for the user interface.
2use super::UIMode;
3
4mod input;
5mod render;
6
7/// Manages the state and logic for the log input and display.
8pub struct LogMode {
9 /// History of user input commands within the log mode.
10 input_history: Vec<String>,
11 /// Current index in the input history for navigation.
12 history_index: Option<usize>,
13}
14
15impl LogMode {
16 /// Creates a new `LogMode` instance.
17 pub fn new() -> Self {
18 Self {
19 input_history: Vec::new(),
20 history_index: None,
21 }
22 }
23}