pty-shell
An extension of pty crate.
https://speakerdeck.com/hibariya/control-a-shell-with-pty-shell
Usage
Add this to your Cargo.toml
:
[]
= '0.2.0'
For example, add src/main.rs as following:
extern crate pty_shell;
use ;
;
Callback Style
Use pty_shell::PtyCallback
.
child.proxy
);
Event types
- input
- output
- resize
- shutdown
Contributing
- Fork it ( https://github.com/hibariya/pty-shell/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
Copyright (c) 2015 Hika Hibariya
Distributed under the MIT License.