Removed greeter

pull/2/head
Mark 2023-06-07 09:19:02 -07:00
parent f1a4cc0072
commit 03d081fe06
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 9 additions and 2 deletions

View File

@ -2,19 +2,25 @@ use std::io::Write;
use std::io::stdout;
use std::io::stdin;
// We only need this for debug
#[cfg(debug_assertions)]
use termion::raw::RawTerminal;
use termion::{
event::Key,
input::TermRead,
raw::IntoRawMode,
raw::RawTerminal,
color,
style,
};
use crate::tokens::EvalError;
use super::promptbuffer::PromptBuffer;
use crate::parser;
/*
#[inline(always)]
fn draw_greeter(stdout: &mut RawTerminal<std::io::Stdout>) -> Result<(), std::io::Error> {
write!(
@ -44,13 +50,14 @@ fn draw_greeter(stdout: &mut RawTerminal<std::io::Stdout>) -> Result<(), std::io
return Ok(());
}
*/
#[inline(always)]
pub fn main() -> Result<(), std::io::Error> {
let mut stdout = stdout().into_raw_mode().unwrap();
draw_greeter(&mut stdout)?;
//draw_greeter(&mut stdout)?;
//let size = termion::terminal_size().unwrap();
//write!(stdout, "{:?}", size).unwrap();