aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-05 01:33:53 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-05 01:33:53 -0500
commitf7de5f52ff1ae465f09a648cffb81192b6aecf45 (patch)
treee4d5374fb024300a48066e60f95ce8c9869cf9d0
parent4b4a9c18e4c55a2ba6558ef614292db9c18ab88a (diff)
downloadvt100-rust-f7de5f52ff1ae465f09a648cffb81192b6aecf45.tar.gz
vt100-rust-f7de5f52ff1ae465f09a648cffb81192b6aecf45.zip
add Clone and Debug to Screen
-rw-r--r--src/grid.rs1
-rw-r--r--src/row.rs2
-rw-r--r--src/screen.rs1
3 files changed, 3 insertions, 1 deletions
diff --git a/src/grid.rs b/src/grid.rs
index b277e34..a5bca31 100644
--- a/src/grid.rs
+++ b/src/grid.rs
@@ -1,3 +1,4 @@
+#[derive(Clone, Debug)]
pub struct Grid {
size: Size,
pos: Pos,
diff --git a/src/row.rs b/src/row.rs
index 38b8eb3..220cc0c 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -1,6 +1,6 @@
use std::convert::TryInto as _;
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub struct Row {
cells: Vec<crate::cell::Cell>,
wrapped: bool,
diff --git a/src/screen.rs b/src/screen.rs
index 6a4a399..1aa9321 100644
--- a/src/screen.rs
+++ b/src/screen.rs
@@ -69,6 +69,7 @@ impl Default for MouseProtocolEncoding {
}
}
+#[derive(Clone, Debug)]
pub struct Screen {
grid: crate::grid::Grid,
alternate_grid: crate::grid::Grid,