MCPcopy Create free account
hub / github.com/GCWing/BitFun / write

Method write

src/crates/services/services-integrations/src/remote_ssh/manager.rs:2456–2463  ·  view source on GitHub ↗

Write data to PTY

(&self, data: &[u8])

Source from the content-addressed store, hash-verified

2454impl PTYSession {
2455 /// Write data to PTY
2456 pub async fn write(&self, data: &[u8]) -> anyhow::Result<()> {
2457 let channel = self.channel.lock().await;
2458 channel
2459 .data(data)
2460 .await
2461 .map_err(|e| anyhow!("Failed to write to PTY: {}", e))?;
2462 Ok(())
2463 }
2464
2465 /// Resize PTY
2466 pub async fn resize(&self, cols: u32, rows: u32) -> anyhow::Result<()> {

Callers 15

start_read_taskMethod · 0.45
send_requestMethod · 0.45
send_notificationMethod · 0.45
initializeMethod · 0.45
shutdownMethod · 0.45
is_aliveMethod · 0.45
should_sendMethod · 0.45
cleanupMethod · 0.45
install_pluginMethod · 0.45
uninstall_pluginMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected