(&mut self)
| 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 | } |