Skip to content

Instantly share code, notes, and snippets.

@bhargavkulk
Created March 1, 2022 05:08
Show Gist options
  • Save bhargavkulk/aba69b6b68920716ce15d310a124be58 to your computer and use it in GitHub Desktop.
Save bhargavkulk/aba69b6b68920716ce15d310a124be58 to your computer and use it in GitHub Desktop.
test
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