summaryrefslogtreecommitdiff
path: root/alacritty/src/config/selection.rs
blob: bf90b48f603991c3a98b1cefa37608fc8502079d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use alacritty_config_derive::ConfigDeserialize;
use alacritty_terminal::term::SEMANTIC_ESCAPE_CHARS;

#[derive(ConfigDeserialize, Clone, Debug, PartialEq, Eq)]
pub struct Selection {
    pub semantic_escape_chars: String,
    pub save_to_clipboard: bool,
}

impl Default for Selection {
    fn default() -> Self {
        Self {
            semantic_escape_chars: SEMANTIC_ESCAPE_CHARS.to_owned(),
            save_to_clipboard: Default::default(),
        }
    }
}