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