You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`applet` | Running applet | `vtm.applet.Warp(int l, int r, int t, int b)` | Request to deform the applet window. The parameters specify four deltas for the left, right, top and bottom sides of the applet window.
585
585
| | | `vtm.applet.ZOrder() -> int` | Request the current z-order state of the applet window.
586
-
| | | `vtm.applet.ZOrder(int n) -> int` | Set the current z-order state for the applet window. -1: backmost; 0: plain; 1: topmost.
586
+
| | | `vtm.applet.ZOrder(int n) -> int` | Set the current z-order state for the applet window. -1: backmost; 0: normal; 1: topmost.
| | | `vtm.terminal.ClearScrollback()` | Clear the terminal scrollback buffer.
646
646
| | | `vtm.terminal.ScrollbackSize() -> int n, m, q` | Get the current scrollback buffer parameters (three integer values):<br>`n` Initial buffer size<br>`m` Grow step<br>`q` Grow limit
647
647
| | | `vtm.terminal.ScrollbackSize(int n, int m, int q)` | Set scrollback buffer parameters:<br>`n` Initial buffer size<br>`m` Grow step<br>`q` Grow limit
648
+
| | | `vtm.terminal.EventReporting(string args, ...)` | Enable event reporting for the specified sources:<br>`"keyboard"` Keyboard events<br>`"mouse"` Mouse events<br>`"focus"` Focus events<br>`"format"` Line format events<br>`"clipoard"` Clipboard events<br>`"window"` Window size and selection events<br>`"system"` System signals<br>`""` Switch event reporting off
649
+
| | | `vtm.terminal.EventReporting()` | Get a list of active event sources.
648
650
| | | `vtm.terminal.Restart()` | Restart the current terminal session.
`""` | Empty string to set all event reporting off.
67
+
68
+
/todo: keyboard only: Note: By enabling `vt-input-mode`, all current terminal modes are automatically saved (to be restored on exit) and switched to something like "raw" mode, in which input is available character by character, echoing is disabled, and all special processing of terminal input and output characters is disabled (except for `LF` to `CR+LF` conversion).
39
69
40
-
Signaling uses APC `ESC _ <payload> ESC \` with an event-specific payload syntax.
70
+
### Event format
71
+
72
+
The event signaling also uses APC `ESC _ <payload> ESC \` with an event-specific payload syntax.
41
73
42
74
The payload consists of a list of attributes in the following format:
43
75
```
@@ -49,27 +81,6 @@ Field | Descriprtion
49
81
`<attr>` | Attribute name.
50
82
`<val>,...,<val>` | Comma-separated value list.
51
83
52
-
## Initialization
53
-
54
-
```
55
-
Set: ESC _ events=<Source0>,...,<SourceN> ESC \
56
-
Reset: ESC _ events ESC \
57
-
```
58
-
59
-
Source | Events to track
60
-
-----------|----------------
61
-
`keyboard` | Keyboard.
62
-
`mouse` | Mouse.
63
-
`focus` | Focus.
64
-
`format` | Line format.
65
-
`clipoard` | Clipboard.
66
-
`window` | Window size and selection.
67
-
`system` | System signals.
68
-
69
-
This sequence enables `vt-input-mode` and event tracking for the specified event `Source`s. The `vt-input-mode` is deactivated if none of the `Source`s is specified.
70
-
71
-
Note: By enabling `vt-input-mode`, all current terminal modes are automatically saved (to be restored on exit) and switched to something like "raw" mode, in which input is available character by character, echoing is disabled, and all special processing of terminal input and output characters is disabled (except for `LF` to `CR+LF` conversion).
72
-
73
84
## Events
74
85
75
86
- Keyboard
@@ -78,7 +89,7 @@ Note: By enabling `vt-input-mode`, all current terminal modes are automatically
`kbmods=<KeyMods>` | Keyboard modifiers (see Keyboard event).
361
-
`coord=<X>,<Y>` | Pixel-wise coordinates of the mouse pointer. Each coordinate is represented in the form of a floating point value of the sum of the integer coordinate of the cell in the terminal window grid and the relative offset within the cell in the range `[0.0f, 1.0f)`.
362
-
`buttons=<ButtonState>` | Mouse button state.
363
-
`scroll=<DeltaX>,<DeltaY>` | Integer value of high resolution horizontal and vertical scroll delta in integer 1/120 units.
364
-
365
-
In response to the activation of `mouse` tracking, the application receives a vt-sequence containing current mouse state:
`kbmods=<KeyMods>` | Keyboard modifiers (see Keyboard event).
372
+
`coor=<X>,<Y>` | Pixel-wise coordinates of the mouse pointer. Each coordinate is represented in the form of a floating point value of the sum of the integer coordinate of the cell in the terminal window grid and the relative offset within the cell in the range `[0.0f, 1.0f)`.
373
+
`buttons=<ButtonState>` | Mouse button state.
374
+
`scroll=<DeltaX>,<DeltaY>` | Integer values of low resolution horizontal and vertical scroll deltas in integer 1/1 units (one scroll line corresponds to a value of 1).
375
+
`finescroll=<DeltaX>,<DeltaY>` | Integer values of high resolution horizontal and vertical scroll deltas in integer 1/120 units (one scroll line corresponds to a value of 120).
369
376
370
377
The mouse tracking event fires on any mouse activity, as well as on keyboard modifier changes.
auto& setutf(bool b) { returnadd(b ? "\033%G" : "\033%@" ); } // escx: Select UTF-8 character set (true) or default (faux). Not supported by Apple Terminal on macOS.
548
556
auto& altbuf(bool b) { returnadd(b ? "\033[?1049h" : "\033[?1049l" ); } // escx: Alternative buffer.
0 commit comments