1
This commit is contained in:
@@ -48,6 +48,7 @@ pub async fn run(
|
||||
.req_stream(OpReq::Attach {
|
||||
session: session.clone(),
|
||||
connection_id: Some(target.connection_id),
|
||||
shell_id: None,
|
||||
pty,
|
||||
cols,
|
||||
rows,
|
||||
@@ -68,7 +69,7 @@ pub async fn run(
|
||||
}
|
||||
ui::print_info(&format!(
|
||||
"attached to #{} ({}@{}) — Ctrl-] to detach",
|
||||
target.connection_id, target.info.user, target.info.hostname
|
||||
target.connection_id, target.info.user, target.info.hostname,
|
||||
));
|
||||
|
||||
if pty {
|
||||
@@ -83,7 +84,7 @@ pub async fn run(
|
||||
result
|
||||
}
|
||||
|
||||
async fn pump(
|
||||
pub async fn pump(
|
||||
client: &AuthedClient,
|
||||
resps: &mut tokio::sync::mpsc::Receiver<OpResp>,
|
||||
pty: bool,
|
||||
@@ -145,7 +146,7 @@ async fn pump(
|
||||
}
|
||||
}
|
||||
|
||||
fn spawn_resize_watch(tx: tokio::sync::mpsc::Sender<(u16, u16)>) {
|
||||
pub fn spawn_resize_watch(tx: tokio::sync::mpsc::Sender<(u16, u16)>) {
|
||||
tokio::spawn(async move {
|
||||
let mut last = terminal::size().unwrap_or((80, 24));
|
||||
loop {
|
||||
|
||||
Reference in New Issue
Block a user