Skip to content

Commit

Permalink
fix(term): rename mouse ansi mode sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Mar 6, 2024
1 parent 28dbcac commit 66d2677
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions exp/term/ansi/mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,49 +31,49 @@ const (
//
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
const (
EnableMouseTracking = "\x1b[?1000h"
DisableMouseTracking = "\x1b[?1000l"
RequestMouseTracking = "\x1b[?1000$p"
EnableMouse = "\x1b[?1000h"
DisableMouse = "\x1b[?1000l"
RequestMouse = "\x1b[?1000$p"
)

// VT Hilite Mouse Tracking is a mode that determines whether the mouse reports on
// button presses, releases, and highlighted cells.
//
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
const (
EnableHiliteMouseTracking = "\x1b[?1001h"
DisableHiliteMouseTracking = "\x1b[?1001l"
RequestHiliteMouseTracking = "\x1b[?1001$p"
EnableMouseHilite = "\x1b[?1001h"
DisableMouseHilite = "\x1b[?1001l"
RequestMouseHilite = "\x1b[?1001$p"
)

// Cell Motion Mouse Tracking is a mode that determines whether the mouse
// reports on button press, release, and motion events.
//
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
const (
EnableCellMotionMouseTracking = "\x1b[?1002h"
DisableCellMotionMouseTracking = "\x1b[?1002l"
RequestCellMotionMouseTracking = "\x1b[?1002$p"
EnableMouseCellMotion = "\x1b[?1002h"
DisableMouseCellMotion = "\x1b[?1002l"
RequestMouseCellMotion = "\x1b[?1002$p"
)

// All Mouse Tracking is a mode that determines whether the mouse reports on
// button press, release, motion, and highlight events.
//
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
const (
EnableAllMouseTracking = "\x1b[?1003h"
DisableAllMouseTracking = "\x1b[?1003l"
RequestAllMouseTracking = "\x1b[?1003$p"
EnableMouseAllMotion = "\x1b[?1003h"
DisableMouseAllMotion = "\x1b[?1003l"
RequestMouseAllMotion = "\x1b[?1003$p"
)

// SGR Mouse Extension is a mode that determines whether the mouse reports events
// formatted with SGR parameters.
//
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
const (
EnableSgrMouseExt = "\x1b[?1006h"
DisableSgrMouseExt = "\x1b[?1006l"
RequestSgrMouseExt = "\x1b[?1006$p"
EnableMouseSgrExt = "\x1b[?1006h"
DisableMouseSgrExt = "\x1b[?1006l"
RequestMouseSgrExt = "\x1b[?1006$p"
)

// Alternate Screen Buffer is a mode that determines whether the alternate screen
Expand Down

0 comments on commit 66d2677

Please sign in to comment.