termseq

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package termseq 从 PTY 字节里抽出跟 TUI 鼠标/焦点有关的 CSI。

职责:把 stdin(模拟器 → 应用)和 stdout(应用 → 模拟器)里的 1000/1004/1006/1049 与 [I]/[O]/滚轮 SGR 编成短标签,给 [DEBUG-b270] 用。 边界:不写 PTY、不改字节;普通按键和清屏一类 CSI 一律忽略,避免把日志打爆。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(notes []string) string

Join 把标签收成一条日志字段。空输入返回空串。

func SummarizeIn

func SummarizeIn(p []byte) []string

SummarizeIn 分类终端模拟器送给应用的字节(用户按键 / 焦点 / 鼠标)。

func SummarizeOut

func SummarizeOut(p []byte) []string

SummarizeOut 分类应用(TUI)写给模拟器的 DECSET/DECRST。

Types

This section is empty.

Jump to

Keyboard shortcuts

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