-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic frame to support new interactive mode
- Loading branch information
Sebastian Thiel
committed
Jun 2, 2019
1 parent
495ccbd
commit 6d82a72
Showing
9 changed files
with
117 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
mod app { | ||
use crate::{WalkOptions, WalkResult}; | ||
use failure::Error; | ||
use std::io; | ||
use std::path::PathBuf; | ||
use termion::input::{Keys, TermReadEventsAndRaw}; | ||
use tui::{backend::Backend, Terminal}; | ||
|
||
pub struct App {} | ||
|
||
impl App { | ||
pub fn event_loop<B, R>( | ||
&mut self, | ||
terminal: &mut Terminal<B>, | ||
keys: Keys<R>, | ||
) -> Result<WalkResult, Error> | ||
where | ||
B: Backend, | ||
R: io::Read + TermReadEventsAndRaw, | ||
{ | ||
unimplemented!() | ||
} | ||
|
||
pub fn initialize<B>( | ||
terminal: &mut Terminal<B>, | ||
options: WalkOptions, | ||
input: Vec<PathBuf>, | ||
) -> Result<App, Error> | ||
where | ||
B: Backend, | ||
{ | ||
Ok(App {}) | ||
} | ||
} | ||
} | ||
|
||
pub use self::app::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[?1049h[?1049lerror: Interactive mode requires a connected terminal | ||
Caused by: | ||
1: Inappropriate ioctl for device (os error 25) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters