removed git merge indicator
This commit is contained in:
parent
86a82a33cd
commit
c7603fe79d
@ -25,21 +25,8 @@ use crossterm::Terminal;
|
|||||||
use std::{thread, time};
|
use std::{thread, time};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
<<<<<<< HEAD
|
|
||||||
let term = Terminal::new();
|
let term = Terminal::new();
|
||||||
let mut cursor = term.cursor();
|
let mut cursor = term.cursor();
|
||||||
cursor.goto(10,10);
|
cursor.goto(10, 10);
|
||||||
cursor.print("test");
|
cursor.print("test");
|
||||||
|
|
||||||
let stdin = term.input();
|
|
||||||
let line = stdin.read_line();
|
|
||||||
println!("{:?}", line)
|
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
{
|
|
||||||
let mut terminal = Terminal::new();
|
|
||||||
terminal.enable_alternate_screen();
|
|
||||||
thread::sleep(time::Duration::from_millis(5000));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>>>>>>> 403d0668a72e9ca04a05bbe137a30d6a2d9ba90c
|
|
||||||
|
@ -13,21 +13,13 @@ use std::rc::Rc;
|
|||||||
|
|
||||||
/// Struct that stores an specific platform implementation for cursor related actions.
|
/// Struct that stores an specific platform implementation for cursor related actions.
|
||||||
pub struct TerminalCursor<'cursor> {
|
pub struct TerminalCursor<'cursor> {
|
||||||
<<<<<<< HEAD
|
|
||||||
screen_manager: &'cursor ScreenManager,
|
screen_manager: &'cursor ScreenManager,
|
||||||
=======
|
|
||||||
context: &'cursor ScreenManager,
|
|
||||||
>>>>>>> 403d0668a72e9ca04a05bbe137a30d6a2d9ba90c
|
|
||||||
terminal_cursor: Box<ITerminalCursor>,
|
terminal_cursor: Box<ITerminalCursor>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'cursor> TerminalCursor<'cursor> {
|
impl<'cursor> TerminalCursor<'cursor> {
|
||||||
/// Create new cursor instance whereon cursor related actions can be performed.
|
/// Create new cursor instance whereon cursor related actions can be performed.
|
||||||
<<<<<<< HEAD
|
|
||||||
pub fn new(screen_manager: &'cursor ScreenManager) -> TerminalCursor<'cursor> {
|
pub fn new(screen_manager: &'cursor ScreenManager) -> TerminalCursor<'cursor> {
|
||||||
=======
|
|
||||||
pub fn new(context: &'cursor ScreenManager) -> TerminalCursor<'cursor> {
|
|
||||||
>>>>>>> 403d0668a72e9ca04a05bbe137a30d6a2d9ba90c
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
let cursor = functions::get_module::<Box<ITerminalCursor>>(
|
let cursor = functions::get_module::<Box<ITerminalCursor>>(
|
||||||
WinApiCursor::new(),
|
WinApiCursor::new(),
|
||||||
|
@ -12,7 +12,7 @@ pub mod cursor;
|
|||||||
pub mod input;
|
pub mod input;
|
||||||
pub mod manager;
|
pub mod manager;
|
||||||
//pub mod style;
|
//pub mod style;
|
||||||
pub mod terminal;
|
//pub mod terminal;
|
||||||
|
|
||||||
pub use shared::Terminal::Terminal;
|
pub use shared::Terminal::Terminal;
|
||||||
//pub use shared::crossterm::Crossterm;
|
//pub use shared::crossterm::Crossterm;
|
||||||
|
@ -2,11 +2,10 @@ use {StateManager, ScreenManager};
|
|||||||
use super::super::state::commands::*;
|
use super::super::state::commands::*;
|
||||||
use super::raw::RawTerminal;
|
use super::raw::RawTerminal;
|
||||||
use super::screen::AlternateScreen;
|
use super::screen::AlternateScreen;
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
use super::super::cursor;
|
use super::super::cursor;
|
||||||
use super::super::input;
|
use super::super::input;
|
||||||
use super::super::terminal;
|
//use super::super::terminal;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
@ -107,9 +106,6 @@ impl Terminal{
|
|||||||
return input::TerminalInput::new(&self.active_screen)
|
return input::TerminalInput::new(&self.active_screen)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn terminal(&self) -> input::TerminalInput {
|
|
||||||
return input::TerminalInput::new(&self.active_screen)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for Terminal
|
impl Drop for Terminal
|
||||||
|
@ -156,7 +156,7 @@ impl IAlternateScreenCommand for ToAlternateScreenBufferCommand {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let b: &mut WinApiScreenManager = match screen_manager
|
let b: &mut WinApiScreenManager = match screen_manager
|
||||||
.as_any()
|
.as_any_mut()
|
||||||
.downcast_mut::<WinApiScreenManager>()
|
.downcast_mut::<WinApiScreenManager>()
|
||||||
{
|
{
|
||||||
Some(b) => b,
|
Some(b) => b,
|
||||||
|
Loading…
Reference in New Issue
Block a user