Created
March 1, 2022 05:08
-
-
Save bhargavkulk/aba69b6b68920716ce15d310a124be58 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod editor; | |
pub mod events; | |
pub mod row; | |
use std::path::PathBuf; | |
use crossterm::Result; | |
use editor::Editor; | |
use log::LevelFilter; | |
use simple_logging; | |
fn main() -> Result<()> { | |
simple_logging::log_to_file("test.log", LevelFilter::Debug)?; | |
let mut deci = Editor::new(); | |
// deci.set_row(); | |
deci.open(&PathBuf::from("src/editor.rs")); | |
deci.start_up()?; | |
loop { | |
deci.refresh_screen()?; | |
deci.process_event(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment