keys

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package keys decodes browser-supplied terminal input into tmux send events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Text string
	Key  string
}

Event is one decoded input item: a literal text run when Key is empty, otherwise a named tmux key such as "Enter" or "Up".

func Decode

func Decode(raw string) []Event

Decode normalizes line endings and splits raw input into literal runs and named keys (Enter, BSpace, Escape, and arrow keys from ANSI sequences).

Jump to

Keyboard shortcuts

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