From 7dca7b1fcde0210a21e844c234616a0d5f36836e Mon Sep 17 00:00:00 2001 From: Timon Date: Wed, 4 Dec 2019 07:22:38 +0100 Subject: [PATCH] Made command fields public (#338) --- src/cursor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cursor.rs b/src/cursor.rs index bf985f2..b681c97 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -78,7 +78,7 @@ impl Command for MoveTo { /// # Notes /// /// Commands must be executed/queued for execution otherwise they do nothing. -pub struct MoveToNextLine(u16); +pub struct MoveToNextLine(pub u16); impl Command for MoveToNextLine { type AnsiType = String; @@ -99,7 +99,7 @@ impl Command for MoveToNextLine { /// # Notes /// /// Commands must be executed/queued for execution otherwise they do nothing. -pub struct MoveToPreviousLine(u16); +pub struct MoveToPreviousLine(pub u16); impl Command for MoveToPreviousLine { type AnsiType = String; @@ -119,7 +119,7 @@ impl Command for MoveToPreviousLine { /// # Notes /// /// Commands must be executed/queued for execution otherwise they do nothing. -pub struct MoveToColumn(u16); +pub struct MoveToColumn(pub u16); impl Command for MoveToColumn { type AnsiType = String;