Skip to content
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

Add the concept of an Asciicast session #3

Open
LegNeato opened this issue Feb 28, 2018 · 0 comments
Open

Add the concept of an Asciicast session #3

LegNeato opened this issue Feb 28, 2018 · 0 comments

Comments

@LegNeato
Copy link
Owner

Add a higher-level concept of an Asciicast session. This would keep track of timing and such. API might look something like:

let mut session = asciicast::Session::new(asciicast::v2);
session.set_height(42);
session.set_width(42);
session.add_event(asciicast::EventType::Input, String::new("this is an event");
session.add_event(asciicast::EventType::Output, String::new("whatever");
let completed = session.end();

It might be cool to have the session provide a stream as well.

@LegNeato LegNeato changed the title Add a concept of an Asciicast session Add the concept of an Asciicast session Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant