Morse
Type Morse code!
Demo

go run main.go
Settings
You can edit settings.
package main
import "github.com/maru44/morse/morse"
func main() {
// set with args
m1 := morse.NewMorse(morse.SinglePing("a"), morse.TriplePing("b"))
// overwrite
m2 := morse.NewMorse()
m.SinglePing = "a"
m.TriplePing = "b"
// define by struct
m3 := morse.Morse{
SinglePing: "a",
TriplePing: "b",
// ...
}
}
The default input settings is the below.
"j" > . (dot)
"k" > - (dash) (You don't have to press it long.)
"l" > to quit it
0.4sec > space
You can use morse as package.
Core system is in here (https://github.com/maru44/morse/morse).
You can use it as package.
go install github.com/maru44/morse@latest
Thanks
https://github.com/eiannone/keyboard
https://github.com/alwindoss/morse