Set an audio or visual alert
Some messages and commands produce an alert in Terminal. You can select a visual alert that makes the Terminal window blink, or an audible alert that makes a sound.
Choose Terminal > Preferences, then click Profiles.
In the profiles list on the left, select a profile.
Under Bell, select the type of alert you want.