pub fn last_lines(n: usize) -> Vec<String>Expand description
Retrieve the most recent n lines from the history buffer.
Entries are returned oldest-to-newest. Passing n == 0 always
returns an empty vector. The returned vector clones the stored
strings so the caller may hold them after the buffer advances.