Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

natural typing timing? #24

Closed
ThomasWaldmann opened this issue Jul 30, 2017 · 5 comments
Closed

natural typing timing? #24

ThomasWaldmann opened this issue Jul 30, 2017 · 5 comments

Comments

@ThomasWaldmann
Copy link

ThomasWaldmann commented Jul 30, 2017

I asked myself whether there already is a tool that can postprocess a asciinema json to make it look like manually typed in.

A borgbackup contributor recently made new asciinema recordings and he found a nice way to enter a lot of text, avoiding typos:

He first entered them into the shell (without asciinema recording it) and then, while asciinema was recording, he just used some autocompletion/history recall feature of the shell so he just needed to manually type the first few characters and then the rest was completed from the shell's memory.

While that is a nice hack, it has one drawback: the first few chars look manually typed and then whoosh all the rest of that line comes in in a blast. Looks strange and also speed-wise sometimes difficult to read / follow.

One issue with such a post-processing might be to actually know what was echoed from the keyboard and what was output generated by the shell - is there some way to know that?

@laughedelic
Copy link

laughedelic commented Jul 31, 2017

I was wondering the same question a time ago. I wrote some JSON filters with jq to "normalize" delays in the recording. Check #14. I'm not sure I can find my scripts now, but I was going recently to use asciinema again, so I'll be interested in this issue again.

Anyway, if there are any ready to use tools already, I'd be glad to know too.

@ku1ik
Copy link
Contributor

ku1ik commented Sep 1, 2017

One could indeed build a tool which could tell echoed text from generated text. It would require asciinema recorder to also capture stdin (in addition to stdout) and store it in the recording file. We don't have it now but it wouldn't be hard to implement it (and we're discussing asciicast v2 format now, considering stdin to be optionally saved).

@ThomasWaldmann I use borg, it's fantastic, great work! And it was nice to see asciinema used in borg's docs 😍

@cmoulliard
Copy link

I was thinking about something similar where we could define the commands to be executed in a file and pass it to asciinema with a parameter as time transition in order to record it without to play the scenario manually

@bkil
Copy link

bkil commented Jul 24, 2022

Note that capturing and publishing keystroke typing biometric timing patterns is a grave privacy risk. It is so tied to an individual, it is possible to use it for authentication.

@ThomasWaldmann
Copy link
Author

Well, the point of the top post was to have timing that looks like natural typing, not to identically replicate a specific person's typing timing.

@ku1ik ku1ik transferred this issue from asciinema/asciinema Apr 25, 2023
@asciinema asciinema locked and limited conversation to collaborators Apr 25, 2023
@ku1ik ku1ik converted this issue into discussion #25 Apr 25, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants