aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocking.rs')
-rw-r--r--src/blocking.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/blocking.rs b/src/blocking.rs
index 538f051..53cc54c 100644
--- a/src/blocking.rs
+++ b/src/blocking.rs
@@ -2,12 +2,12 @@ use std::io::Write as _;
use super::private::TextmodeImpl as _;
-pub struct Textmode {
+pub struct Output {
cur: vt100::Parser,
next: vt100::Parser,
}
-impl super::private::TextmodeImpl for Textmode {
+impl super::private::TextmodeImpl for Output {
fn cur(&self) -> &vt100::Parser {
&self.cur
}
@@ -25,9 +25,9 @@ impl super::private::TextmodeImpl for Textmode {
}
}
-impl super::TextmodeExt for Textmode {}
+impl super::Textmode for Output {}
-impl Textmode {
+impl Output {
pub fn new() -> std::io::Result<Self> {
let (rows, cols) = match terminal_size::terminal_size() {
Some((terminal_size::Width(w), terminal_size::Height(h))) => {
@@ -65,7 +65,7 @@ impl Textmode {
}
}
-impl Drop for Textmode {
+impl Drop for Output {
fn drop(&mut self) {
let _ = self.write_stdout(super::DEINIT);
}