Documentation
¶
Overview ¶
Package sendkeys simulates user input in a terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target represents the tty to which the keys are sent. Create one by calling Open and send keys using Target.SendRunes or Target.SendBytes. The Target must be closed after use.
func Open ¶
Open returns a Target that sends keys to the specified TTY. The delay is the time to wait before sending each separate string when SendRunes or SendBytes is called.