From c280882749e4126e8863e1e9869e16c5c46197a7 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Wed, 27 Dec 2023 09:52:27 -0800 Subject: Rename tiocgwinsz.rs to term.rs. I will be putting more functionality in this file. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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")); -- cgit v1.3.1