Skip to content

Commit

Permalink
Backup commit, squash me!
Browse files Browse the repository at this point in the history
  • Loading branch information
anderejd committed Feb 20, 2019
1 parent 39c1931 commit 831bd04
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion cargo-geiger/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ extern crate geiger;
extern crate petgraph;
extern crate structopt;
extern crate walkdir;
//extern crate crossterm_cursor;

//use crossterm_cursor::cursor;
use self::walkdir::DirEntry;
use self::walkdir::WalkDir;
use crate::format::Pattern;
Expand Down Expand Up @@ -841,7 +843,23 @@ fn print_dependency<'a>(
// TODO: Split up table and tree printing and paint into a backbuffer
// before writing to stdout?
let unsafe_info = colorize(table_row(&pack_metrics_root));
println!("{} {} {}{}", unsafe_info, icon, treevines, dep_name);
//println!("{} {} {}{}", unsafe_info, icon, treevines, dep_name);
print!("{} {}", unsafe_info, icon);
print!("\r");
print!("\x1B[51C");
//print!(" ");
println!("{}{}", treevines, dep_name);
//let cursor = cursor();
//cursor.move_right(52).unwrap(); // FIXME
//
//https://docs.rs/console/0.7.5/console/struct.Emoji.html
//https://docs.rs/console/0.7.5/console/struct.Emoji.html
//https://docs.rs/console/0.7.5/console/struct.Emoji.html
//https://docs.rs/console/0.7.5/console/struct.Emoji.html
//https://docs.rs/console/0.7.5/console/struct.Emoji.html
//
//https://github.com/redox-os/termion/blob/master/src/cursor.rs

if !new {
return;
}
Expand Down

0 comments on commit 831bd04

Please sign in to comment.