Skip to content

Commit

Permalink
Add system bell function
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Mar 12, 2023
1 parent fc17d99 commit af9a13f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ttuy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
package ttuy

import (
"fmt"

"github.com/olekukonko/ts"
)

Expand Down Expand Up @@ -46,3 +48,8 @@ func terminalRows() {
size, _ := ts.GetSize()
rows = size.Row()
}

// Bell triggers the system bell which makes the machine make an alarm noise.
func Bell() {
fmt.Print("\a")
}

0 comments on commit af9a13f

Please sign in to comment.