Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Oct 25, 2016
1 parent 603a491 commit 29b29d2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
45 changes: 27 additions & 18 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,32 @@ $ top
$ ^D
Input saved as `recorded_input`.
$ cat recorded_input
3.595 'l'
3.774 's'
4.878 '\r'
6.592 't'
6.878 'o'
6.927 'p'
8.001 '\r'
9.098 '\u{1b}' 'O' 'B'
9.333 '\u{1b}' 'O' 'B'
9.584 '\u{1b}' 'O' 'B'
9.874 '\u{1b}' 'O' 'A'
10.110 '\u{1b}' 'O' 'A'
10.380 '\u{1b}' 'O' 'C'
10.896 '\u{1b}' 'O' 'D'
11.624 'q'
12.727 '\u{4}'
3.595 'l'
3.774 's'
4.878 '\r'
6.592 't'
6.878 'o'
6.927 'p'
8.001 '\r'
9.098 '\u{1b}' 'O' 'B'
9.333 '\u{1b}' 'O' 'B'
9.584 '\u{1b}' 'O' 'B'
9.874 '\u{1b}' 'O' 'A'
10.110 '\u{1b}' 'O' 'A'
10.380 '\u{1b}' 'O' 'C'
10.896 '\u{1b}' 'O' 'D'
11.624 'q'
12.727 '\u{4}'
$ replay
Starting replay.
$ ls
Dektop/ Mail/ Music/ Documents/ Pictures/
$ top
$ ^D
Session replay complete.
$
```

Each line consists of the number of seconds since the beginning of the session,
followed by the list of bytes received at that time.
Each line is a tab-separated list of values.
The first value is the time in seconds since the beginning of the session.
The other values are the byte received at that time.
2 changes: 1 addition & 1 deletion src/bin/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn main() {
child.proxy(PtyCallback::new().build()).unwrap();
// Child stops here. Now it's all the parent.

println!("Starting replay");
print!("Starting replay.\r\n");
let mut current = 0f64;
for record in reader.decode() {
let (time, record): (f64, Vec<String>) = record.unwrap();
Expand Down

0 comments on commit 29b29d2

Please sign in to comment.