Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maru44/morse
Type Morse Code!
https://github.com/maru44/morse
Last synced: 5 days ago
JSON representation
Type Morse Code!
- Host: GitHub
- URL: https://github.com/maru44/morse
- Owner: maru44
- License: mit
- Created: 2021-08-17T10:05:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T10:42:15.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T00:33:35.884Z (7 months ago)
- Language: Go
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Morse
Type Morse code!
## Demo
![demo](https://raw.github.com/wiki/maru44/morse/images/morse1.gif)
## How to start inputing by cli
`go run main.go`
## Settings
You can edit settings.
```go
package mainimport "github.com/maru44/morse/morse"
func main() {
// set with args
m1 := morse.NewMorse(morse.DitPing("a"), morse.DahPing("b"))// overwrite
m2 := morse.NewMorse()
m2.DitPing = "a"
m2.DahPing = "b"// define by struct
m3 := morse.Morse{
DitPing: "a",
DahPing: "b",
// ...
}
}
```The default input settings is the below.
```
"j" > . (dit)
"k" > - (dah) (You don't have to press it long.)
"l" > to quit it0.4sec > one time unit
```## 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