atac 0.23.0

Arguably a Terminal API Client. Feature-full, free, open-source, offline and account-less.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::tui::utils::stateful::text_input::TextInput;

pub struct ScriptConsole {
    pub pre_request_text_area: TextInput,
    pub post_request_text_area: TextInput,
    pub script_selection: u16,
}

impl ScriptConsole {
    pub fn change_selection(&mut self) {
        self.script_selection = match self.script_selection {
            0 => 1,
            1 => 0,
            _ => 0
        }
    }
}