mirror of https://github.com/rm-dr/daisy
Removed greeter
parent
f1a4cc0072
commit
03d081fe06
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue