Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Commit 5a569df

Browse files
committed
fix: improve prints
1 parent 19738a9 commit 5a569df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ fn prompt_index<R: BufRead, W: Write>(r: &mut R, w: &mut W) -> io::Result<usize>
205205
}
206206

207207
fn prompt_bytes<R: BufRead, W: Write>(r: &mut R, w: &mut W) -> io::Result<Vec<u8>> {
208-
write!(w, "Enter data (hex): ")?;
208+
write!(w, "Enter length: ")?;
209209
w.flush()?;
210210
let n: usize = read_line(r)?.trim().parse().unwrap_or(0);
211211
let n = n.clamp(1, BUFFER_SIZE);
212+
write!(w, "Enter {n} raw bytes: ")?;
213+
w.flush()?;
212214
let mut buf = vec![0u8; n];
213215
r.read_exact(&mut buf)?;
214216
let mut discard = String::new();

0 commit comments

Comments
 (0)