ringTerminalBell function

void ringTerminalBell(
  1. TerminalDriver driver
)

Rings the terminal bell through driver when it supports it; no-op otherwise.

Implementation

void ringTerminalBell(TerminalDriver driver) {
  if (driver is TerminalAttentionDriver) {
    (driver as TerminalAttentionDriver).ringBell();
  }
}