aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-13 07:32:52 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-13 07:32:52 -0500
commit4c8e8318b76eef417a3c6234c69108d6ed92d05b (patch)
tree2647fdd2eec791639e6769ac2c47fa4cffee181b
parente85e57949df612e22463c06fc31fb0b7957ea3c7 (diff)
downloadvt100-rust-4c8e8318b76eef417a3c6234c69108d6ed92d05b.tar.gz
vt100-rust-4c8e8318b76eef417a3c6234c69108d6ed92d05b.zip
docs
-rw-r--r--src/screen.rs23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/screen.rs b/src/screen.rs
index 3128f78..9639573 100644
--- a/src/screen.rs
+++ b/src/screen.rs
@@ -194,7 +194,7 @@ impl Screen {
/// terminal parser, and will result in the same visual output.
///
/// You are responsible for positioning the cursor before printing each
- /// row, and final cursor position after displaying each row is
+ /// row, and the final cursor position after displaying each row is
/// unspecified.
pub fn rows_formatted(
&self,
@@ -252,7 +252,7 @@ impl Screen {
/// row subset in `self`.
///
/// You are responsible for positioning the cursor before printing each
- /// row, and final cursor position after displaying each row is
+ /// row, and the final cursor position after displaying each row is
/// unspecified.
pub fn rows_diff<'a>(
&'a self,
@@ -281,6 +281,14 @@ impl Screen {
})
}
+ /// Returns terminal escape sequences sufficient to set the current
+ /// terminal's input modes.
+ ///
+ /// Supported modes are:
+ /// * application keypad
+ /// * application cursor
+ /// * bracketed paste
+ /// * xterm mouse support
pub fn input_mode_formatted(&self) -> Vec<u8> {
let mut contents = vec![];
self.write_input_mode_formatted(&mut contents);
@@ -310,6 +318,9 @@ impl Screen {
.write_buf(contents);
}
+ /// Returns terminal escape sequences sufficient to change the previous
+ /// terminal's input modes to the input modes enabled in the current
+ /// terminal.
pub fn input_mode_diff(&self, prev: &Self) -> Vec<u8> {
let mut contents = vec![];
self.write_input_mode_diff(&mut contents, prev);
@@ -350,6 +361,8 @@ impl Screen {
.write_buf(contents);
}
+ /// Returns terminal escape sequences sufficient to set the current
+ /// terminal's window title.
pub fn title_formatted(&self) -> Vec<u8> {
let mut contents = vec![];
self.write_title_formatted(&mut contents);
@@ -361,6 +374,9 @@ impl Screen {
.write_buf(contents);
}
+ /// Returns terminal escape sequences sufficient to change the previous
+ /// terminal's window title to the window title set in the current
+ /// terminal.
pub fn title_diff(&self, prev: &Self) -> Vec<u8> {
let mut contents = vec![];
self.write_title_diff(&mut contents, prev);
@@ -377,6 +393,9 @@ impl Screen {
.write_buf(contents);
}
+ /// Returns terminal escape sequences sufficient to cause audible and
+ /// visual bells to occur if they have been received since the terminal
+ /// described by `prev`.
pub fn bells_diff(&self, prev: &Self) -> Vec<u8> {
let mut contents = vec![];
self.write_bells_diff(&mut contents, prev);