aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2023-12-27 10:18:24 -0800
committerRose Hogenson <rosehogenson@posteo.net>2023-12-27 10:18:24 -0800
commit82094d878c73532d9ca7b6d2d6fcf91696d59ee8 (patch)
tree3170d253859af590bf88d7b49d9c9ab59634ef32 /src/main.rs
parentc280882749e4126e8863e1e9869e16c5c46197a7 (diff)
downloadeditor-82094d878c73532d9ca7b6d2d6fcf91696d59ee8.tar.zst
Put the terminal in raw mode.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index a516ea4..63ae538 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,6 +6,8 @@ use std::ffi::{OsStr, OsString};
use std::path::Path;
fn edit(file: &OsStr) -> Result<(), String> {
+ let _raw_handle = term::raw();
+
let r = match Rope::open(Path::new(file)) {
Ok(r) => r,
Err(err) => {