stdin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnterRawMode

func EnterRawMode() error

func ExitRawMode

func ExitRawMode() error

func Listen

func Listen(keys []string, trigger chan<- KeyPressDownEvent) error

Types

type KeyPressDownEvent

type KeyPressDownEvent struct {
	Key string // non-empty if a valid key from `keys` slice
	EOF bool   // true if stdin closed (e.g. ctrl+d)
}

Jump to

Keyboard shortcuts

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