Skip to content
flashes command prompt on windows, "jumps" the terminal icon on macos.
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
README.md
alert_example_macos.gif

README.md

Alert

Alert is a simple (really, really simple) tool written in Rust that does one thing:

It flashes the command prompt window it is executed in (on Windows), or hops the Terminal dock icon (on MacOS). (Linux version is in progress).

The idea is that if you have some long-running console task, you can just throw Alert at the end to get notified when it's done.

On Windows, this is accomplished by calling into the WinApi to get the currently running console window handle and invoking FlashWindowEx on it.

On MacOS, Alert is simply a glorified shell script, because MacOS by default jumps the Terminal icon when it receives the BEL character. The Alert executable invokes the command tput bel to do this.

Example on MacOS:

You can’t perform that action at this time.