diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-10 18:16:22 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 18:16:22 +0400 |
commit | 5060f8eeb864e8c304fbad9588bdd882db942356 (patch) | |
tree | b615ded19e6ac545b495f716e2a22ecd903332af /alacritty_terminal/src/grid/mod.rs | |
parent | 3ffd6c8f26f9788466b9ba95659b8de970a10f08 (diff) | |
download | alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.tar.gz alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.zip |
Remove `alacritty_config` from alacritty_terminal
There's no need to force alacritty's user configuration on
other users of the crate, thus provide the options actually used
by alacritty_terminal itself.
Diffstat (limited to 'alacritty_terminal/src/grid/mod.rs')
-rw-r--r-- | alacritty_terminal/src/grid/mod.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/alacritty_terminal/src/grid/mod.rs b/alacritty_terminal/src/grid/mod.rs index 232201ec..8fdde0a4 100644 --- a/alacritty_terminal/src/grid/mod.rs +++ b/alacritty_terminal/src/grid/mod.rs @@ -3,11 +3,12 @@ use std::cmp::{max, min}; use std::ops::{Bound, Deref, Index, IndexMut, Range, RangeBounds}; +#[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -use crate::ansi::{CharsetIndex, StandardCharset}; use crate::index::{Column, Line, Point}; use crate::term::cell::{Flags, ResetDiscriminant}; +use crate::vte::ansi::{CharsetIndex, StandardCharset}; pub mod resize; mod row; @@ -104,14 +105,15 @@ pub enum Scroll { /// ^ /// columns /// ``` -#[derive(Serialize, Deserialize, Clone, Debug)] +#[derive(Clone, Debug)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Grid<T> { /// Current cursor for writing data. - #[serde(skip)] + #[cfg_attr(feature = "serde", serde(skip))] pub cursor: Cursor<T>, /// Last saved cursor. - #[serde(skip)] + #[cfg_attr(feature = "serde", serde(skip))] pub saved_cursor: Cursor<T>, /// Lines in the grid. Each row holds a list of cells corresponding to the |