MCPcopy Index your code
hub / github.com/endbasic/endbasic / set_sync

Method set_sync

terminal/src/lib.rs:434–441  ·  view source on GitHub ↗
(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

432 }
433
434 fn set_sync(&mut self, enabled: bool) -> io::Result<bool> {
435 if !self.sync_enabled {
436 io::stdout().flush()?;
437 }
438 let previous = self.sync_enabled;
439 self.sync_enabled = enabled;
440 Ok(previous)
441 }
442
443 async fn beep(&mut self) -> io::Result<()> {
444 let stdout = io::stdout();

Callers

nothing calls this directly

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected