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