morse

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 6 Imported by: 0

README

Morse

Type Morse code!

Demo

demo

How to start inputing by cli

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL