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

Method beep

std/src/console/trivial.rs:145–152  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

143 }
144
145 async fn beep(&mut self) -> io::Result<()> {
146 let stdout = io::stdout();
147 let mut stdout = stdout.lock();
148 stdout.write_all(b"\x07")?;
149 stdout.flush()?;
150 thread::sleep(BEEP_TONE.duration);
151 Ok(())
152 }
153}

Callers 1

async_execMethod · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected