Skip to content

Commit 9c9ca50

Browse files
committed
feat: Expose PtySession::new
1 parent 6f4463d commit 9c9ca50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl PtySession {
204204
/// # }().expect("test failed");
205205
/// # }
206206
/// ```
207-
fn new(process: PtyProcess, options: Options) -> Result<Self, Error> {
207+
pub fn new(process: PtyProcess, options: Options) -> Result<Self, Error> {
208208
let f = process.get_file_handle()?;
209209
let reader = f.try_clone()?;
210210
let stream = StreamSession::new(reader, f, options);

0 commit comments

Comments
 (0)