aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2023-12-27 09:52:27 -0800
committerRose Hogenson <rosehogenson@posteo.net>2023-12-27 09:52:27 -0800
commitc280882749e4126e8863e1e9869e16c5c46197a7 (patch)
tree365a9d7c9bd4da2469e797a383f84be0a1d17d92
parentd754bf29a7f6c60bb3617518bc72c0f17a36fe50 (diff)
downloadeditor-c280882749e4126e8863e1e9869e16c5c46197a7.tar.zst
Rename tiocgwinsz.rs to term.rs.
I will be putting more functionality in this file.
-rw-r--r--src/main.rs4
-rw-r--r--src/term.rs (renamed from src/tiocgwinsz.rs)0
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 711f920..a516ea4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,5 @@
mod rope;
-mod tiocgwinsz;
+mod term;
use rope::Rope;
use std::ffi::{OsStr, OsString};
@@ -12,7 +12,7 @@ fn edit(file: &OsStr) -> Result<(), String> {
return Err(format!("open file {}: {}", file.to_string_lossy(), err));
}
};
- let size = match tiocgwinsz::size() {
+ let size = match term::size() {
Some(size) => size,
None => {
return Err(String::from("cannot get terminal size"));
diff --git a/src/tiocgwinsz.rs b/src/term.rs
index f8246fd..f8246fd 100644
--- a/src/tiocgwinsz.rs
+++ b/src/term.rs