Fix baby fuzzer tui (#2425)
This commit is contained in:
parent
56d70accf5
commit
78a30c4403
@ -3,7 +3,7 @@ use std::ptr::write_volatile;
|
||||
use std::{path::PathBuf, ptr::write};
|
||||
|
||||
#[cfg(feature = "tui")]
|
||||
use libafl::monitors::tui::{ui::TuiUI, TuiMonitor};
|
||||
use libafl::monitors::tui::TuiMonitor;
|
||||
#[cfg(not(feature = "tui"))]
|
||||
use libafl::monitors::SimpleMonitor;
|
||||
use libafl::{
|
||||
@ -90,9 +90,10 @@ pub fn main() {
|
||||
#[cfg(not(feature = "tui"))]
|
||||
let mon = SimpleMonitor::new(|s| println!("{s}"));
|
||||
#[cfg(feature = "tui")]
|
||||
let ui = TuiUI::with_version(String::from("Baby Fuzzer"), String::from("0.0.1"), false);
|
||||
#[cfg(feature = "tui")]
|
||||
let mon = TuiMonitor::new(ui);
|
||||
let mon = TuiMonitor::builder()
|
||||
.title("Baby Fuzzer")
|
||||
.enhanced_graphics(false)
|
||||
.build();
|
||||
|
||||
// The event manager handle the various events generated during the fuzzing loop
|
||||
// such as the notification of the addition of a new item to the corpus
|
||||
|
Loading…
x
Reference in New Issue
Block a user