You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just built this to support notifying the user of erroneous key presses and it seems to work perfectly.
func beep() tea.Cmd {
return func() tea.Msg {
// Bell character
bell := "\007"
// Write directly to the standard output
fmt.Fprint(os.Stdout, bell)
return nil
}
}
Is there a first class way to do this or is this fine?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just built this to support notifying the user of erroneous key presses and it seems to work perfectly.
Is there a first class way to do this or is this fine?
Beta Was this translation helpful? Give feedback.
All reactions