Skip to content

requestAttention ​

requestAttention rings the terminal bell (BEL, \x07) on stderr, Tyrus programs are CLI/server binaries with no GUI window of their own to flash a taskbar icon on, so the bell is the closest cross-platform equivalent.

SignaturerequestAttention(critical: boolean): void
tyrus
import { requestAttention } from "tyrus:os";

requestAttention(false);

critical rings the bell three times instead of once.