mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
fix(tui): mouse wheel ansi codes leaking into editor
This commit is contained in:
parent
8be1ca836c
commit
294d0e7ee3
35 changed files with 6104 additions and 61 deletions
14
packages/tui/input/mode.go
Normal file
14
packages/tui/input/mode.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package input
|
||||
|
||||
import "github.com/charmbracelet/x/ansi"
|
||||
|
||||
// ModeReportEvent is a message that represents a mode report event (DECRPM).
|
||||
//
|
||||
// See: https://vt100.net/docs/vt510-rm/DECRPM.html
|
||||
type ModeReportEvent struct {
|
||||
// Mode is the mode number.
|
||||
Mode ansi.Mode
|
||||
|
||||
// Value is the mode value.
|
||||
Value ansi.ModeSetting
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue